public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] power: supply: intruduce and use power_supply_for_each_psy() and dev_to_psy()
@ 2024-12-08 13:02 Thomas Weißschuh
  2024-12-08 13:02 ` [PATCH 01/14] power: supply: mm8013: use accessor for driver data Thomas Weißschuh
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: Thomas Weißschuh @ 2024-12-08 13:02 UTC (permalink / raw)
  To: Sebastian Reichel, Linus Walleij, Maximilian Luz, Pali Rohár,
	Konrad Dybcio
  Cc: linux-pm, linux-kernel, platform-driver-x86,
	Thomas Weißschuh

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>
---
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: 39f3bd9c9a27d526858da153090376decdf7bfea
change-id: 20241208-power-supply-dev_to_psy-fb3fa4e1fa6a

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-12-17 14:08 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-08 13:02 [PATCH 00/14] power: supply: intruduce and use power_supply_for_each_psy() and dev_to_psy() Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 01/14] power: supply: mm8013: use accessor for driver data Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 02/14] power: supply: core: introduce power_supply_for_each_psy() Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 03/14] power: supply: core: use power_supply_for_each_psy() Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 04/14] power: supply: ab8500: " Thomas Weißschuh
2024-12-09 16:29   ` kernel test robot
2024-12-08 13:02 ` [PATCH 05/14] power: supply: apm_power: " Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 06/14] power: supply: core: remove power_supply_for_each_device() Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 07/14] power: supply: core: introduce dev_to_psy() Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 08/14] power: supply: core: use dev_to_psy() Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 09/14] power: supply: sysfs: " Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 10/14] power: supply: ab8500: " Thomas Weißschuh
2024-12-17 14:08   ` Linus Walleij
2024-12-08 13:02 ` [PATCH 11/14] power: supply: surface_battery: " Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 12/14] power: supply: bq2415x_charger: " Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 13/14] power: supply: bq24190_charger: " Thomas Weißschuh
2024-12-08 13:02 ` [PATCH 14/14] power: supply: bq24257_charger: " Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox