platform/x86: dell-ddv: Expose the battery health to userspace
authorArmin Wolf <W_Armin@gmx.de>
Tue, 29 Apr 2025 00:36:06 +0000 (02:36 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 12 May 2025 10:20:42 +0000 (13:20 +0300)
commit2bd1870a67692bb7bbeba80bb3135934d78eba66
tree6d7be157cc995f94c975658f557dc75c902645df
parent303ecf690ae2882f1138ea1437207fba5294da34
platform/x86: dell-ddv: Expose the battery health to userspace

The health of a given battery is exposed over the Dell DDV WMI
interface using the "BatteryManufactureAceess" WMI method. The
resulting data contains, among other data, the health status of
the battery.

Expose this value to userspace using the power supply extension
interface.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250429003606.303870-4-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/wmi/devices/dell-wmi-ddv.rst
drivers/platform/x86/dell/dell-wmi-ddv.c