summaryrefslogtreecommitdiff
path: root/drivers/power/supply/bq27xxx_battery.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-08-01 04:57:27 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2022-09-11 14:39:15 +0200
commit4a4748f28b0b2547de745ed929e929a9b45563f1 (patch)
treec32c6ca69ca7655ed8f4aad73051b14d3689fab0 /drivers/power/supply/bq27xxx_battery.c
parent04f7c7df96de7a2e9a72e53e8082754b13495813 (diff)
power: supply: bq25890: Add support for setting IINLIM
Let user set input current limit via sysfs. This is useful in case there are multiple chargers connected to the device, each of which with its own arbitrary maximum current which it can provide, some of which may provide more than the default 500mA. In that case, userspace can listen for plug events generated by each charger and adjust the current limit accordingly, e.g. to permit battery to charge faster. Note that the IINLIM is reset every time the bq25890 is disconnected from a charger, so the userspace must adjust the limit repeatly on every plug event. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/bq27xxx_battery.c')
0 files changed, 0 insertions, 0 deletions