diff options
author | Andreas Dannenberg <dannenberg@ti.com> | 2015-09-28 17:33:59 -0500 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-09-29 16:54:52 +0200 |
commit | 0cfbfde65aec4cd9ae4e7971f8a3e42c69e8e24f (patch) | |
tree | 5f0b0cc925d6b0b9b778c52dfbfe1f85bd4ca56c /drivers/cpuidle/cpuidle-exynos.c | |
parent | 138606ffe45511fa774e51df04f6da562ff9c44d (diff) | |
download | blackbird-op-linux-0cfbfde65aec4cd9ae4e7971f8a3e42c69e8e24f.tar.gz blackbird-op-linux-0cfbfde65aec4cd9ae4e7971f8a3e42c69e8e24f.zip |
power: bq24257: Allow input current limit sysfs access
This patch allows reading and writing of the input current limit through
the power supply's input_current_limit sysfs property. This allows
userspace to see what charger was detected (if the D+/D- USB signal-
based charger type detection is enabled) and to re-configure the maximum
current drawn from the external supply at runtime based on system-level
knowledge or user input. Note that upon charger disconnection and
re-connection the limit configured through firmware becomes active again
(or the D+/D- USB signal-based charger detection will be run again).
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/cpuidle/cpuidle-exynos.c')
0 files changed, 0 insertions, 0 deletions