commit | aca3c3546396b305fff79f09883cff48a908aac0 | [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:19:44 2015 +0200 |
tree | 802519e100fd760e7e6462fc39611664f9cfc2b6 | |
parent | e4ae537e0482e99eeaa5373d39932fe65a477c21 [diff] |
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>