diff options
| author | Lucas Zampieri <lcasmz54@gmail.com> | 2026-03-14 01:05:30 +0000 |
|---|---|---|
| committer | Benjamin Tissoires <bentiss@kernel.org> | 2026-03-19 15:52:45 +0100 |
| commit | 4a58ae85c3f9b142ffba023d0f976978ade57d1b (patch) | |
| tree | bb1290dad98d07903b4ff6b846f2efa5223b37e0 /tools/perf/scripts/python | |
| parent | 7a3ac62473f2bd213557e41aaab7a8f144037dfd (diff) | |
HID: input: Add support for multiple batteries per device
Add support for HID devices that report multiple batteries, each
identified by its report ID.
The hid_device->battery pointer is replaced with a batteries list.
Batteries are named using the pattern hid-{uniq}-battery-{report_id}.
The hid_get_battery() helper returns the first battery in the list for
backwards compatibility with single-battery drivers.
Signed-off-by: Lucas Zampieri <lcasmz54@gmail.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
