diff options
| author | Amit Sunil Dhamne <amitsd@google.com> | 2026-07-14 21:10:52 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-17 12:32:45 +0200 |
| commit | 3b17c8d8d658f24e319b1aacd937dc9be38c3fe4 (patch) | |
| tree | 7b98283a2d464ac4f24dabee12f27bd0b64ad1c7 /include/linux/usb | |
| parent | 1e6be4bd53f0f06377c3ce3c26ea4a6cadd4ab46 (diff) | |
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>
Diffstat (limited to 'include/linux/usb')
0 files changed, 0 insertions, 0 deletions
