diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-11-13 15:44:37 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2014-11-14 14:50:18 +0800 |
commit | 72501700b2f4eb9f7db0f3af76922be415ee5e91 (patch) | |
tree | 803c8755f1dc3baf9d1981250ce5ce7aa0f614cc /drivers | |
parent | 575d58527f799f897b67939a99940f7d117b3201 (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.c | 1 |
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"); } /* |