twl4030_charger: allow max_current to be managed via sysfs.
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:19:44 +0000 (05:19 +0200)
commitaca3c3546396b305fff79f09883cff48a908aac0
tree802519e100fd760e7e6462fc39611664f9cfc2b6
parente4ae537e0482e99eeaa5373d39932fe65a477c21
twl4030_charger: allow max_current to be managed via sysfs.

'max_current' sysfs attributes are created which allow the
max to be set.
Whenever a current source changes, the default is restored.
This will be followed by a uevent, so user-space can decide to
update again.

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 [new file with mode: 0644]
drivers/power/twl4030_charger.c