Home
last modified time | relevance | path

Searched refs:pf_device (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/platform/x86/
H A Dlg-laptop.c64 static struct platform_device *pf_device; variable
454 r = lg_wmbb(&pf_device->dev, WMBB_BATT_LIMIT, WM_SET, value); in charge_control_end_threshold_store()
456 r = lg_wmab(&pf_device->dev, WM_BATT_LIMIT, WM_SET, value); in charge_control_end_threshold_store()
475 r = lg_wmbb(&pf_device->dev, WMBB_BATT_LIMIT, WM_GET, 0); in charge_control_end_threshold_show()
486 r = lg_wmab(&pf_device->dev, WM_BATT_LIMIT, WM_GET, 0); in charge_control_end_threshold_show()
660 if (pf_device) in acpi_add()
667 pf_device = platform_device_register_full(&pdev_info); in acpi_add()
668 if (IS_ERR(pf_device)) { in acpi_add()
669 ret = PTR_ERR(pf_device); in acpi_add()
670 pf_device = NULL; in acpi_add()
[all …]
H A Dfujitsu-laptop.c130 struct platform_device *pf_device; member
546 priv->pf_device = platform_device_alloc("fujitsu-laptop", PLATFORM_DEVID_NONE); in fujitsu_laptop_platform_add()
547 if (!priv->pf_device) in fujitsu_laptop_platform_add()
550 platform_set_drvdata(priv->pf_device, priv); in fujitsu_laptop_platform_add()
552 ret = platform_device_add(priv->pf_device); in fujitsu_laptop_platform_add()
556 ret = sysfs_create_group(&priv->pf_device->dev.kobj, in fujitsu_laptop_platform_add()
564 platform_device_del(priv->pf_device); in fujitsu_laptop_platform_add()
566 platform_device_put(priv->pf_device); in fujitsu_laptop_platform_add()
575 sysfs_remove_group(&priv->pf_device->dev.kobj, in fujitsu_laptop_platform_remove()
577 platform_device_unregister(priv->pf_device); in fujitsu_laptop_platform_remove()
H A Dsony-laptop.c1293 struct platform_device *pf_device) in sony_nc_function_setup() argument
1323 result = sony_nc_touchpad_setup(pf_device, handle); in sony_nc_function_setup()
1331 result = sony_nc_battery_care_setup(pf_device, handle); in sony_nc_function_setup()
1338 result = sony_nc_lid_resume_setup(pf_device, handle); in sony_nc_function_setup()
1344 result = sony_nc_thermal_setup(pf_device); in sony_nc_function_setup()
1352 result = sony_nc_gfx_switch_setup(pf_device, handle); in sony_nc_function_setup()
1358 result = sony_nc_highspeed_charging_setup(pf_device); in sony_nc_function_setup()
1376 result = sony_nc_kbd_backlight_setup(pf_device, handle); in sony_nc_function_setup()
1382 result = sony_nc_lowbatt_setup(pf_device); in sony_nc_function_setup()
1388 result = sony_nc_fanspeed_setup(pf_device); in sony_nc_function_setup()
[all …]