diff options
author | 2024-12-10 22:55:49 +0100 | |
---|---|---|
committer | 2024-12-11 02:00:24 +0100 | |
commit | 9029409d1a250da19f1086ab1113752411c5163d (patch) | |
tree | cbc2212717e8f78e06074d0c3896b8bd345fc508 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: supply: mm8013: use accessor for driver data (diff) | |
download | wireguard-linux-9029409d1a250da19f1086ab1113752411c5163d.tar.xz wireguard-linux-9029409d1a250da19f1086ab1113752411c5163d.zip |
power: supply: core: introduce power_supply_for_each_psy()
All existing callers of power_supply_for_each_device() want to iterate
over 'struct power_supply', not 'struct device'.
The power_supply_for_each_device() forces each caller to duplicate the
logic to go from one to the other.
Introduce power_supply_for_each_psy() to simplify the callers.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241210-power-supply-dev_to_psy-v2-2-9d8c9d24cfe4@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