[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2n706qq8-45os-9959-7427-83r26344q434@xreary.bet>
Date: Sun, 22 Jun 2025 23:02:32 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Saalim Quadri <danascape@...il.com>
cc: lains@...eup.net, bentiss@...nel.org, gregkh@...uxfoundation.org,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC] Writing a Driver for Xinmeng M71 Keyboard (Battery Status
Support)
On Sun, 22 Jun 2025, Saalim Quadri wrote:
> I would appreciate guidance on, how can I continue this, I am familiar
> with Linux Kernel and writing drivers, but would like to ask some
> pointers regarding the same. I saw a reference that logitech HID driver
> uses it, but it looked quite complex to me.
>
> I'm comfortable writing kernel C code but relatively new to the HID
> subsystem. Any documentation pointers, example patches, or suggestions
> to get started would be highly appreciated.
Yeah, Logitech is probably the most complex (and thus not really
appropriate :) ) driver to pick when trying to understand something. It's
quite complex.
Specifically for handling battery interface, I'd suggest looking into some
way more trivial driver that also exposes battery interface (in the most
straightforward way) for inspiration, e.g. hid-asus, hid-kysona ...
Thanks,
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists