mbox series

[0/2] power: supply: core: class cleanups

Message ID 20240301-psy-class-cleanup-v1-0-aebe8c4b6b08@collabora.com (mailing list archive)
Headers show
Series power: supply: core: class cleanups | expand

Message

Sebastian Reichel March 1, 2024, 10:58 p.m. UTC
I noticed some further possible cleanups when reviewing
and applying Ricardo's patch to make power_supply_class
constant.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
Sebastian Reichel (2):
      power: supply: core: add power_supply_for_each_device()
      power: supply: core: simplify power_supply_class_init

 drivers/power/supply/ab8500_btemp.c      |  3 +--
 drivers/power/supply/ab8500_chargalg.c   |  3 +--
 drivers/power/supply/ab8500_charger.c    |  3 +--
 drivers/power/supply/ab8500_fg.c         |  3 +--
 drivers/power/supply/apm_power.c         |  3 +--
 drivers/power/supply/power_supply_core.c | 43 +++++++++++++-------------------
 include/linux/power_supply.h             |  3 +--
 7 files changed, 23 insertions(+), 38 deletions(-)
---
base-commit: 71c2cc5cbf686c2397f43cbcb51a31589bdcee7b
change-id: 20240301-psy-class-cleanup-6e6711d595aa

Best regards,

Comments

Ricardo B. Marliere March 2, 2024, 9:11 p.m. UTC | #1
On  1 Mar 23:58, Sebastian Reichel wrote:
> I noticed some further possible cleanups when reviewing
> and applying Ricardo's patch to make power_supply_class
> constant.

Good one!

Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>

Thank you,
-	Ricardo.


> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
> ---
> Sebastian Reichel (2):
>       power: supply: core: add power_supply_for_each_device()
>       power: supply: core: simplify power_supply_class_init
> 
>  drivers/power/supply/ab8500_btemp.c      |  3 +--
>  drivers/power/supply/ab8500_chargalg.c   |  3 +--
>  drivers/power/supply/ab8500_charger.c    |  3 +--
>  drivers/power/supply/ab8500_fg.c         |  3 +--
>  drivers/power/supply/apm_power.c         |  3 +--
>  drivers/power/supply/power_supply_core.c | 43 +++++++++++++-------------------
>  include/linux/power_supply.h             |  3 +--
>  7 files changed, 23 insertions(+), 38 deletions(-)
> ---
> base-commit: 71c2cc5cbf686c2397f43cbcb51a31589bdcee7b
> change-id: 20240301-psy-class-cleanup-6e6711d595aa
> 
> Best regards,
> -- 
> Sebastian Reichel <sebastian.reichel@collabora.com>
>
Sebastian Reichel March 6, 2024, 12:24 a.m. UTC | #2
On Fri, 01 Mar 2024 23:58:25 +0100, Sebastian Reichel wrote:
> I noticed some further possible cleanups when reviewing
> and applying Ricardo's patch to make power_supply_class
> constant.
> 
> 

Applied, thanks!

[1/2] power: supply: core: add power_supply_for_each_device()
      commit: 68ade0976df7979eac5f1d46320ff798f5043af6
[2/2] power: supply: core: simplify power_supply_class_init
      commit: ea1ec769d1f01a9900127e83e63dfdd77d096c8a

Best regards,