Searched refs:pf_device (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/platform/x86/ |
| H A D | lg-laptop.c | 113 static struct platform_device *pf_device; variable 497 r = lg_wmbb(&pf_device->dev, WMBB_BATT_LIMIT, WM_SET, value); in charge_control_end_threshold_store() 503 ret = lg_wmab_set(&pf_device->dev, WM_BATT_LIMIT, value); in charge_control_end_threshold_store() 523 r = lg_wmbb(&pf_device->dev, WMBB_BATT_LIMIT, WM_GET, 0); in charge_control_end_threshold_show() 535 ret = lg_wmab_get(&pf_device->dev, WM_BATT_LIMIT, &status); in charge_control_end_threshold_show() 950 if (pf_device) in acpi_probe() 974 pf_device = platform_device_register_full(&pdev_info); in acpi_probe() 975 if (IS_ERR(pf_device)) { in acpi_probe() 976 ret = PTR_ERR(pf_device); in acpi_probe() 977 pf_device = NULL; in acpi_probe() [all …]
|
| H A D | fujitsu-laptop.c | 138 struct platform_device *pf_device; member 698 priv->pf_device = platform_device_alloc("fujitsu-laptop", PLATFORM_DEVID_NONE); in fujitsu_laptop_platform_add() 699 if (!priv->pf_device) in fujitsu_laptop_platform_add() 702 platform_set_drvdata(priv->pf_device, priv); in fujitsu_laptop_platform_add() 704 ret = platform_device_add(priv->pf_device); in fujitsu_laptop_platform_add() 708 ret = sysfs_create_group(&priv->pf_device->dev.kobj, in fujitsu_laptop_platform_add() 716 platform_device_del(priv->pf_device); in fujitsu_laptop_platform_add() 718 platform_device_put(priv->pf_device); in fujitsu_laptop_platform_add() 727 sysfs_remove_group(&priv->pf_device->dev.kobj, in fujitsu_laptop_platform_remove() 729 platform_device_unregister(priv->pf_device); in fujitsu_laptop_platform_remove()
|
| H A D | sony-laptop.c | 1290 struct platform_device *pf_device) in sony_nc_function_setup() argument 1320 result = sony_nc_touchpad_setup(pf_device, handle); in sony_nc_function_setup() 1328 result = sony_nc_battery_care_setup(pf_device, handle); in sony_nc_function_setup() 1335 result = sony_nc_lid_resume_setup(pf_device, handle); in sony_nc_function_setup() 1341 result = sony_nc_thermal_setup(pf_device); in sony_nc_function_setup() 1349 result = sony_nc_gfx_switch_setup(pf_device, handle); in sony_nc_function_setup() 1355 result = sony_nc_highspeed_charging_setup(pf_device); in sony_nc_function_setup() 1373 result = sony_nc_kbd_backlight_setup(pf_device, handle); in sony_nc_function_setup() 1379 result = sony_nc_lowbatt_setup(pf_device); in sony_nc_function_setup() 1385 result = sony_nc_fanspeed_setup(pf_device); in sony_nc_function_setup() [all …]
|