summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-11-13 15:44:37 +0800
committerPeter Chen <peter.chen@freescale.com>2014-11-14 14:50:18 +0800
commit72501700b2f4eb9f7db0f3af76922be415ee5e91 (patch)
tree803c8755f1dc3baf9d1981250ce5ce7aa0f614cc /drivers
parent575d58527f799f897b67939a99940f7d117b3201 (diff)
MLK-9832-2 power: imx6_usb_charger: add sysfs_notify for "present"
In that case, the application can "poll" the charger "present" state. Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/imx6_usb_charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/imx6_usb_charger.c b/drivers/power/imx6_usb_charger.c
index 680c8df15f93..52c90a8ec206 100644
--- a/drivers/power/imx6_usb_charger.c
+++ b/drivers/power/imx6_usb_charger.c
@@ -152,6 +152,7 @@ static void usb_charger_is_present(struct usb_charger *charger, bool present)
charger->present = 0;
power_supply_changed(&charger->psy);
+ sysfs_notify(&charger->psy.dev->kobj, NULL, "present");
}
/*