twl4030_charger: enable manual enable/disable of usb charging.
authorNeilBrown <neil@brown.name>
Thu, 30 Jul 2015 00:11:24 +0000 (10:11 +1000)
committerSebastian Reichel <sre@kernel.org>
Wed, 5 Aug 2015 03:20:36 +0000 (05:20 +0200)
commit22d4c33f7335ddf6deda26630c78650e133bfe72
tree1206e8ba5bc4e273c1125e039035cd7c4a23705f
parentaca3c3546396b305fff79f09883cff48a908aac0
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>
Documentation/ABI/testing/sysfs-class-power-twl4030
drivers/power/twl4030_charger.c