diff options
| author | 2026-03-14 01:05:30 +0000 | |
|---|---|---|
| committer | 2026-03-19 15:52:45 +0100 | |
| commit | 4a58ae85c3f9b142ffba023d0f976978ade57d1b (patch) | |
| tree | bb1290dad98d07903b4ff6b846f2efa5223b37e0 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | HID: input: Introduce struct hid_battery and refactor battery code (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 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
