From: Markus Elfring <Markus.Elfring@web.de>
To: Stuart Hayhurst <stuart.a.hayhurst@gmail.com>,
linux-input@vger.kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>,
Benjamin Tissoires <bentiss@kernel.org>,
Jiri Kosina <jikos@kernel.org>
Subject: Re: [PATCH] HID: corsair-void: Add Corsair Void headset family driver
Date: Thu, 15 Aug 2024 09:50:51 +0200 [thread overview]
Message-ID: <da4ca647-6eef-4576-9882-c5ffeddd1f7b@web.de> (raw)
In-Reply-To: <20240813153819.840275-3-stuart.a.hayhurst@gmail.com>
…
> Should I leave it like this, or deregister the attributes, so those cases are never triggered?
>
> I'm also not sure about the block of comments at the start describing the (guessed) format of the
> packets, let me know if this should go somewhere else.
>
> Apologies if I've messed anything up, I've only sent fairly small patches until now :)
Such information should not belong to the change description.
It may be specified behind the marker line.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.11-rc3#n711
…
> +++ b/drivers/hid/hid-corsair-void.c
> @@ -0,0 +1,851 @@
…
> +static void corsair_void_process_receiver(struct corsair_void_drvdata *drvdata,
> + int raw_battery_capacity,
> + int raw_connection_status,
> + int raw_battery_status)
> +{
…
> + /* Set battery status */
> + switch (raw_battery_status) {
> + case 1:
> + case 2:
> + case 3: /* Battery normal / low / critical */
…
Will any enumeration values become more helpful here?
…
> +static int corsair_void_request_status(struct hid_device *hid_dev, int id)
> +{
> + unsigned char *send_buf;
> + int ret;
> +
> + send_buf = kzalloc(12, GFP_KERNEL);
…
Please improve the size determination (or explanation).
…
> +static int corsair_void_probe(struct hid_device *hid_dev,
> + const struct hid_device_id *hid_id)
> +{
…
> +/*failed_after_hid_start:
> + hid_hw_stop(hid_dev);*/
> +failed_after_sysfs:
…
I guess that you would not like to preserve code which was commented out.
Regards,
Markus
next prev parent reply other threads:[~2024-08-15 7:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 15:38 Stuart Hayhurst
2024-08-15 4:19 ` kernel test robot
2024-08-15 7:50 ` Markus Elfring [this message]
2024-08-16 0:57 ` Stuart
2024-08-16 14:49 ` kernel test robot
2024-08-18 13:12 ` Markus Elfring
2024-08-18 23:17 ` Stuart
2024-08-19 5:53 ` Markus Elfring
2024-08-19 17:16 ` Stuart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da4ca647-6eef-4576-9882-c5ffeddd1f7b@web.de \
--to=markus.elfring@web.de \
--cc=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stuart.a.hayhurst@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®