Lines Matching refs:pf_device
64 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()
723 ret = sysfs_create_group(&pf_device->dev.kobj, &dev_attribute_group); in acpi_add()
728 led_classdev_register(&pf_device->dev, &kbd_backlight); in acpi_add()
729 led_classdev_register(&pf_device->dev, &tpad_led); in acpi_add()
737 platform_device_unregister(pf_device); in acpi_add()
745 sysfs_remove_group(&pf_device->dev.kobj, &dev_attribute_group); in acpi_remove()
752 platform_device_unregister(pf_device); in acpi_remove()
753 pf_device = NULL; in acpi_remove()