]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: battery: Make "not-charging" the default on no charging or full info
authorWerner Sembach <wse@tuxedocomputers.com>
Wed, 27 Apr 2022 15:40:53 +0000 (17:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 6 May 2022 18:37:51 +0000 (20:37 +0200)
commit5446dde14b4e7ad10504c1dc6fb71593aa6169ea
tree2992f9a66f4b9a9da038c3e36b3c68a5ef5f7e18
parent544a5fe319cb40167d3412034418cda5e59da893
ACPI: battery: Make "not-charging" the default on no charging or full info

When the battery is neither charging or discharging and is not full,
"not-charging" is a useful status description for the case in general.
Currently this state is set as "unknown" by default, expect when this is
explicitly replaced with "not-charging" on a per device or per vendor
basis.

A lot of devices have this state without a BIOS specification available
explicitly describing it. e.g. some current Clevo barebones have a BIOS
setting to stop charging at a user defined battery level.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c