Lines Matching refs:pf_device
87 static struct platform_device *pf_device; variable
466 r = lg_wmbb(&pf_device->dev, WMBB_BATT_LIMIT, WM_SET, value); in charge_control_end_threshold_store()
468 r = lg_wmab(&pf_device->dev, WM_BATT_LIMIT, WM_SET, value); in charge_control_end_threshold_store()
487 r = lg_wmbb(&pf_device->dev, WMBB_BATT_LIMIT, WM_GET, 0); in charge_control_end_threshold_show()
498 r = lg_wmab(&pf_device->dev, WM_BATT_LIMIT, WM_GET, 0); in charge_control_end_threshold_show()
774 if (pf_device) in acpi_add()
792 pf_device = platform_device_register_full(&pdev_info); in acpi_add()
793 if (IS_ERR(pf_device)) { in acpi_add()
794 ret = PTR_ERR(pf_device); in acpi_add()
795 pf_device = NULL; in acpi_add()
848 ret = sysfs_create_group(&pf_device->dev.kobj, &dev_attribute_group); in acpi_add()
853 led_classdev_register(&pf_device->dev, &kbd_backlight); in acpi_add()
854 led_classdev_register(&pf_device->dev, &tpad_led); in acpi_add()
862 platform_device_unregister(pf_device); in acpi_add()
870 sysfs_remove_group(&pf_device->dev.kobj, &dev_attribute_group); in acpi_remove()
877 platform_device_unregister(pf_device); in acpi_remove()
878 pf_device = NULL; in acpi_remove()