thinkpad_acpi: Add support for battery thresholds
authorOgnjen Galic <[email protected]>
Wed, 7 Feb 2018 14:58:44 +0000 (15:58 +0100)
committerRafael J. Wysocki <[email protected]>
Wed, 21 Feb 2018 22:27:13 +0000 (23:27 +0100)
commit2801b9683f740012863f7f0b1f0bc770c417fe72
tree4d1c1cdb48d483b08cb3f792e71a6534eb4824b7
parent285995d15d3b1725d021a8a274e55f2ce30ccfa0
thinkpad_acpi: Add support for battery thresholds

1) Charge start threshold
/sys/class/power_supply/BATN/charge_start_threshold

Valid values are [0, 99]. A value of 0 turns off the
start threshold wear control.

2) Charge stop threshold
/sys/class/power_supply/BATN/charge_stop_threshold

Valid values are [1, 100]. A value of 100 turns off
the stop threshold wear control. This must be
configured first.

Signed-off-by: Ognjen Galic <[email protected]>
Acked-by: Henrique de Moraes Holschuh <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/platform/x86/Kconfig
drivers/platform/x86/thinkpad_acpi.c