Re: [PATCH] HID: corsair-void: Add Corsair Void headset family driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> How do you think about to distinguish properties any further for available
> device attributes?
> https://elixir.bootlin.com/linux/v6.11-rc3/source/Documentation/driver-api/driver-model/device.rst#L38

Sorry I'm not sure I follow you're saying

> * Are these really changeable?

The receiver firmware version wouldn't change during the device's
lifetime unless someone wrote a firmware updater for Linux, even then
it would probably reconnect
The headset firmware version could theoretically change if you changed
which headset is paired, but I don't have 2 headsets of the same model
to test this

> * Can the macro “DEVICE_ATTR_RO” be applied?

Done, also applied DEVICE_ATTR_WO

> > +MODULE_AUTHOR("Stuart Hayhurst");
> Would you like to add an email address here?

Done. Thanks again for the review, I'll submit a v2 with the changes so far.

Stuart

On Sun, Aug 18, 2024 at 2:12 PM Markus Elfring <Markus.Elfring@xxxxxx> wrote:
>
> How do you think about to distinguish properties any further for available
> device attributes?
> https://elixir.bootlin.com/linux/v6.11-rc3/source/Documentation/driver-api/driver-model/device.rst#L38
>
>
>
> > +++ b/drivers/hid/hid-corsair-void.c
> > @@ -0,0 +1,851 @@
>
> > +static DEVICE_ATTR(fw_version_receiver, 0444, corsair_void_report_firmware, NULL);
> > +static DEVICE_ATTR(fw_version_headset, 0444, corsair_void_report_firmware, NULL);
>
> * Are these really changeable?
>
> * Can the macro “DEVICE_ATTR_RO” be applied?
>
>
>
> > +MODULE_AUTHOR("Stuart Hayhurst");
>
> Would you like to add an email address here?
>
> Regards,
> Markus





[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux