]> www.infradead.org Git - users/willy/xarray.git/commit
power: supply: hwmon: prepare for power supply extensions
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 11 Nov 2024 21:40:06 +0000 (22:40 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 4 Dec 2024 23:02:31 +0000 (00:02 +0100)
commit39bb32f06c1f7eb34b4a9838e878f3d741b7d50c
tree8b729e5cfe590a4ee1d16579e1e291aff992ebfd
parentaa40f37d636570458e1be76f51564357347eb77c
power: supply: hwmon: prepare for power supply extensions

The upcoming extension API will add properties which are not part of the
the power_supply_desc.
Use power_supply_has_property() so the properties from extensions are
also checked.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20241111-power-supply-extensions-v4-4-7240144daa8e@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_hwmon.c