]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: sysfs: prepare for power supply extensions
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 11 Nov 2024 21:40:07 +0000 (22:40 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 4 Dec 2024 23:02:31 +0000 (00:02 +0100)
commit5c2141f2c7c671e8696e2ee1c7b332c77266dd08
tree88d232e940bd6e74d2058d3a1c0db21de7b0d145
parent39bb32f06c1f7eb34b4a9838e878f3d741b7d50c
power: supply: sysfs: 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>
Link: https://lore.kernel.org/r/20241111-power-supply-extensions-v4-5-7240144daa8e@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_sysfs.c