linux/drivers/power
Amit Sunil Dhamne 3b17c8d8d6 power: supply: Add helpers to get and put arrays of power supply handles
Add power_supply_get_system_batteries() to allow drivers to obtain
a list of registered battery type power supply references in the
system. Also add power_supply_put_system_batteries() to perform
cleanup after the former function is called.

Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260714-batt-status-v5-1-9de4aa900b69@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-07-17 12:32:45 +02:00
..
reset Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
sequencing Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
supply power: supply: Add helpers to get and put arrays of power supply handles 2026-07-17 12:32:45 +02:00
Kconfig power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00
Makefile power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00