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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241005-power-supply-no-wakeup-source-v1-0-1d62bf9bcb1d@weissschuh.net>
Date: Sat, 05 Oct 2024 12:05:02 +0200
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Sebastian Reichel <sre@...nel.org>, 
 "Rafael J. Wysocki" <rafael@...nel.org>, Len Brown <lenb@...nel.org>, 
 Pali Rohár <pali@...nel.org>, 
 Benson Leung <bleung@...omium.org>, Guenter Roeck <groeck@...omium.org>, 
 Luca Ceresoli <luca.ceresoli@...tlin.com>
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org, 
 linux-acpi@...r.kernel.org, chrome-platform@...ts.linux.dev, 
 Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 0/8] power: supply: core: remove
 {,devm_}power_supply_register_no_ws()

The meaning of the _no_ws() suffix is not immediately clear when reading
the code. Furthermore there is already a dedicated API to configure the
details of the created power supply in "struct power_supply_config".
Migrate the functionality to "struct power_supply_config" and remove the
special functions.

Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
---
Thomas Weißschuh (8):
      power: supply: core: add wakeup source inhibit by power_supply_config
      ACPI: battery: Register power supply with power_supply_register()
      power: supply: acer_a500_battery: register power supply with devm_power_supply_register()
      power: supply: bq27xxx_battery: register power supply with power_supply_register()
      power: supply: cros_usbpd-charger: register power supply with devm_power_supply_register()
      power: supply: lenovo_yoga_c630_battery: register power supplies with power_supply_register()
      power: supply: max77976_charger: register power supply with devm_power_supply_register()
      power: supply: core: remove {,devm_}power_supply_register_no_ws()

 drivers/acpi/battery.c                          |  3 +-
 drivers/power/supply/acer_a500_battery.c        |  7 +--
 drivers/power/supply/bq27xxx_battery.c          |  3 +-
 drivers/power/supply/cros_usbpd-charger.c       |  4 +-
 drivers/power/supply/lenovo_yoga_c630_battery.c | 14 ++---
 drivers/power/supply/max77976_charger.c         |  3 +-
 drivers/power/supply/power_supply_core.c        | 68 ++-----------------------
 include/linux/power_supply.h                    | 10 +---
 8 files changed, 26 insertions(+), 86 deletions(-)
---
base-commit: 27cc6fdf720183dce1dbd293483ec5a9cb6b595e
change-id: 20240922-power-supply-no-wakeup-source-45cd19b68a9a

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ