commit | 22d4c33f7335ddf6deda26630c78650e133bfe72 | [log] [tgz] |
---|---|---|
author | NeilBrown <neil@brown.name> | Thu Jul 30 10:11:24 2015 +1000 |
committer | Sebastian Reichel <sre@kernel.org> | Wed Aug 05 05:20:36 2015 +0200 |
tree | 1206e8ba5bc4e273c1125e039035cd7c4a23705f | |
parent | aca3c3546396b305fff79f09883cff48a908aac0 [diff] |
twl4030_charger: enable manual enable/disable of usb charging. 'off' or 'auto' to /sys/class/power/twl4030_usb/mode will now enable or disable charging from USB port. Normally this is enabled on 'plug' and disabled on 'unplug'. Unplug will still disable charging. 'plug' will only enable it if 'auto' if selected. Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Sebastian Reichel <sre@kernel.org>