Re: [RFC PATCH v2 0/3] HID: Add support for multiple batteries per device
From: Sebastian Reichel
Date: Thu Nov 13 2025 - 14:59:46 EST
Hi,
On Thu, Nov 13, 2025 at 12:15:02AM +0000, Lucas Zampieri wrote:
> ## Request for Comments
>
> Is list-based storage appropriate or would another structure work better?
> Should we support usage-based identification in addition to report ID for
> devices using the same report ID? Is sequential naming (battery-N) sufficient
> or should batteries have semantic role identifiers like "main", "stylus", "dock"?
If unique semantic identifiers are available they are obviously a better
choice.
> To HID maintainers (Jiri Kosina, Benjamin Tissoires): Does this belong in
> hid-input.c or should it be separate? Any concerns about the backwards
> compatibility approach? Meaning, should I have removed the whole
> dev->bat legacy mapping and use the new struct?
>
> To power supply maintainers (Sebastian Reichel): Any issues with multiple
> power_supply devices from a single HID device?
I don't see any issues with that.
Greetings,
-- Sebastian
Attachment:
signature.asc
Description: PGP signature