diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-11-11 22:40:05 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-12-05 00:02:31 +0100 |
commit | aa40f37d636570458e1be76f51564357347eb77c (patch) | |
tree | e080a8a55b4958234f609d19f1a1cc2eec35aa9c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 172f2151c2b436746173d794887115e026961d82 (diff) |
power: supply: core: introduce power_supply_has_property()
Introduce a helper to check if a power supply implements a certain
property. It will be used by the sysfs and hwmon code to remove similar
open-coded checks.
It also paves the way for the extension API to hook into.
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-3-7240144daa8e@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions