diff options
author | Quentin Schulz <quentin.schulz@free-electrons.com> | 2017-05-11 15:42:20 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-06-08 17:57:53 +0200 |
commit | c800384490500cdf4c2409a9052862d1db805499 (patch) | |
tree | a107cc656ef64b77a93ae80a5be710e75f889aa5 /drivers/power/reset/reboot-mode.h | |
parent | power: supply: axp20x_battery: add support for DT battery (diff) | |
download | linux-c800384490500cdf4c2409a9052862d1db805499.tar.xz linux-c800384490500cdf4c2409a9052862d1db805499.zip |
power: supply: axp20x_battery: add DT support for battery max constant charge current
This adds the ability to set the maximum constant charge current,
supported by the battery, delivered by this battery power supply to the
battery.
The maximum constant charge current set in DT will also set the default
constant charge current supplied by this supply.
The actual user can modify the constant charge current within the range
of 0 to maximum constant charge current via sysfs.
The user can also modify the maximum constant charge current to widen
the range of possible constant charge current. While this seems quite
risky, a message is printed on the console to warn the user this might
damage the battery. The reason for letting the user change the maximum
constant charge current is for letting users change the battery and
thus, let them adjust the maximum constant charge current according to
what the battery can support.
Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power/reset/reboot-mode.h')
0 files changed, 0 insertions, 0 deletions