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)
commit185d20694a8aceb4eda9fc1314cbaad0df0aab07
tree2992f9a66f4b9a9da038c3e36b3c68a5ef5f7e18
parent7dacee0b9efc8bd061f097b1a8d4daa6591af0c6
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