Message ID | 20241210-power-supply-dev_to_psy-v2-0-9d8c9d24cfe4@weissschuh.net (mailing list archive) |
---|---|
Headers | show |
Series | power: supply: introduce and use power_supply_for_each_psy() and dev_to_psy() | expand |
On Tue, 10 Dec 2024 22:55:47 +0100, Thomas Weißschuh wrote: > Add two new functions with easier to use and safer APIs. > Switch over a bunch of in-tree users. > > The first commit is not directly related but fits the general theme of > the series. > > > [...] Applied, thanks! [01/14] power: supply: mm8013: use accessor for driver data commit: e959fdb1cd4dccd37225cac654901a862c52e0c5 [02/14] power: supply: core: introduce power_supply_for_each_psy() commit: 9029409d1a250da19f1086ab1113752411c5163d [03/14] power: supply: core: use power_supply_for_each_psy() commit: 68abaf7323ae857db7ec56a174b7bbf5fc687d47 [04/14] power: supply: ab8500: use power_supply_for_each_psy() commit: 87f57faa20ee2cc274400801fb197a27535ff6b5 [05/14] power: supply: apm_power: use power_supply_for_each_psy() commit: 230fb418b47733d887dc8ca1a653b21f41f77399 [06/14] power: supply: core: remove power_supply_for_each_device() commit: bfc330323cf3ea6d5c9985179384c0b56f2d5372 [07/14] power: supply: core: introduce dev_to_psy() commit: f52204036326bd9c07db08bab6607f423c801716 [08/14] power: supply: core: use dev_to_psy() commit: ead11ae3c0d9805012fb7bd3169f7771844410cc [09/14] power: supply: sysfs: use dev_to_psy() commit: 4543b0c3534c65d676a837640d1ed1611e5e3038 [10/14] power: supply: ab8500: use dev_to_psy() commit: 1f4971fd33b1c79f1a265ce878c29241d4100a69 [11/14] power: supply: surface_battery: use dev_to_psy() commit: 6d99e50663f61db460a2b09ad1feef069b013182 [12/14] power: supply: bq2415x_charger: use dev_to_psy() commit: 30c9849c4867197d7e23f8108b93f5d196d6953f [13/14] power: supply: bq24190_charger: use dev_to_psy() commit: f11ebcdeb9208e07140c7db9a849df111fbbe9d7 [14/14] power: supply: bq24257_charger: use dev_to_psy() commit: 72ad51a62389dc99fbe5337ad1821399b23bd78f Best regards,
Add two new functions with easier to use and safer APIs. Switch over a bunch of in-tree users. The first commit is not directly related but fits the general theme of the series. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- Changes in v2: - Remove slipped in 'struct power_supply_ext' - Link to v1: https://lore.kernel.org/r/20241208-power-supply-dev_to_psy-v1-0-f95de9117558@weissschuh.net --- Thomas Weißschuh (14): power: supply: mm8013: use accessor for driver data power: supply: core: introduce power_supply_for_each_psy() power: supply: core: use power_supply_for_each_psy() power: supply: ab8500: use power_supply_for_each_psy() power: supply: apm_power: use power_supply_for_each_psy() power: supply: core: remove power_supply_for_each_device() power: supply: core: introduce dev_to_psy() power: supply: core: use dev_to_psy() power: supply: sysfs: use dev_to_psy() power: supply: ab8500: use dev_to_psy() power: supply: surface_battery: use dev_to_psy() power: supply: bq2415x_charger: use dev_to_psy() power: supply: bq24190_charger: use dev_to_psy() power: supply: bq24257_charger: use dev_to_psy() drivers/power/supply/ab8500_btemp.c | 5 +-- drivers/power/supply/ab8500_chargalg.c | 5 +-- drivers/power/supply/ab8500_charger.c | 5 +-- drivers/power/supply/ab8500_fg.c | 33 ++++++++-------- drivers/power/supply/apm_power.c | 6 +-- drivers/power/supply/bq2415x_charger.c | 24 +++++------ drivers/power/supply/bq24190_charger.c | 4 +- drivers/power/supply/bq24257_charger.c | 8 ++-- drivers/power/supply/mm8013.c | 2 +- drivers/power/supply/power_supply_core.c | 66 ++++++++++++++++++------------- drivers/power/supply/power_supply_sysfs.c | 8 ++-- drivers/power/supply/surface_battery.c | 4 +- include/linux/power_supply.h | 4 +- 13 files changed, 92 insertions(+), 82 deletions(-) --- base-commit: 94ba531bf9cb3c4ef725ffc37b8ed09006533f25 change-id: 20241208-power-supply-dev_to_psy-fb3fa4e1fa6a Best regards,