diff options
author | 2024-03-01 23:58:26 +0100 | |
---|---|---|
committer | 2024-03-06 00:21:34 +0100 | |
commit | 68ade0976df7979eac5f1d46320ff798f5043af6 (patch) | |
tree | bbd9ce6c1190b841f435bf186e0ec399a33529ae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: supply: core: make power_supply_class constant (diff) | |
download | wireguard-linux-68ade0976df7979eac5f1d46320ff798f5043af6.tar.xz wireguard-linux-68ade0976df7979eac5f1d46320ff798f5043af6.zip |
power: supply: core: add power_supply_for_each_device()
Introduce power_supply_for_each_device(), which is a wrapper
for class_for_each_device() using the power_supply_class and
going through all devices.
This allows making the power_supply_class itself a local
variable, so that drivers cannot mess with it and simplifies
the code slightly.
Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240301-psy-class-cleanup-v1-1-aebe8c4b6b08@collabora.com
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