]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: dell-ddv: Expose the battery manufacture date to userspace
authorArmin Wolf <W_Armin@gmx.de>
Tue, 29 Apr 2025 00:36:05 +0000 (02:36 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 12 May 2025 10:20:40 +0000 (13:20 +0300)
commit303ecf690ae2882f1138ea1437207fba5294da34
tree6589cbb061fec6042e461ab672eb8bdd55e9266a
parent058de163a376b28816f91ff5e2fe6d7bc227e2ae
platform/x86: dell-ddv: Expose the battery manufacture date to userspace

The manufacture date of a given battery is exposed over the Dell DDV
WMI interface using the "BatteryManufactureDate" WMI method. The
resulting data contains the manufacture date of the battery encoded
inside a 16-bit value as described in the Smart Battery Data
Specification.

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-3-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