summaryrefslogtreecommitdiff
path: root/drivers/acpi/debugfs.c
diff options
context:
space:
mode:
authorAndreas Dannenberg <dannenberg@ti.com>2015-09-28 22:33:59 (GMT)
committerSebastian Reichel <sre@kernel.org>2015-09-29 14:54:52 (GMT)
commit0cfbfde65aec4cd9ae4e7971f8a3e42c69e8e24f (patch)
tree5f0b0cc925d6b0b9b778c52dfbfe1f85bd4ca56c /drivers/acpi/debugfs.c
parent138606ffe45511fa774e51df04f6da562ff9c44d (diff)
downloadlinux-0cfbfde65aec4cd9ae4e7971f8a3e42c69e8e24f.tar.xz
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/acpi/debugfs.c')
0 files changed, 0 insertions, 0 deletions