lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241210-power-supply-dev_to_psy-v2-0-9d8c9d24cfe4@weissschuh.net>
Date: Tue, 10 Dec 2024 22:55:47 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Sebastian Reichel <sre@...nel.org>, 
 Linus Walleij <linus.walleij@...aro.org>, 
 Maximilian Luz <luzmaximilian@...il.com>, 
 Pali Rohár <pali@...nel.org>, 
 Konrad Dybcio <konradybcio@...nel.org>
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org, 
 platform-driver-x86@...r.kernel.org, 
 Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH v2 00/14] power: supply: introduce and use
 power_supply_for_each_psy() and dev_to_psy()

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@...ssschuh.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,
-- 
Thomas Weißschuh <linux@...ssschuh.net>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ