Re: [PATCH 0/3] HID: iio: callback API signature match for usage_id

From: Jonathan Cameron

Date: Tue Jun 23 2026 - 15:03:54 EST


On Wed, 17 Jun 2026 18:52:51 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> On Tue, Jun 16, 2026 at 06:55:19PM +0530, Sanjay Chitroda wrote:
> >
> > Most of HID IIO driver has correct 'u32' type of usage_id with
> > https://lore.kernel.org/all/20260610-6-june-hid-iio-correct-usage-id-v2-0-c3c5f0720493@xxxxxxxxx/
> > series which is applied on iio/testing branch.
> >
> > On top of the same, this series updates remaining HID IIO drivers
> > to use 'u32' for the usage_id parameter.
> >
> > Pending list of HID IIO drivers are extracted with command line:
> > find drivers/iio/ -type f -name "*hid*" | xargs grep -A 5 static | \
> > grep -E -A 5 "_proc_event\(|_capture_sample\(|_parse_report\(" --color | \
> > grep usage_id
>
> I recommend to get used with `git grep ...` which is more powerful and much
> faster (on a Git index).
>
> git grep -lw 'u[^3].* usage_id' -- drivers/iio/
>
> for the list of files, and
>
> git grep -np -w 'u[^3].* usage_id' -- drivers/iio/
>
> for a better view.
>
> (It gives one false positive, though :-)
>
> > This matches expected callback API type as HID usage IDs are
> > defined as 32-bit values.
> >
> > No functional changes are introduced.
> >
> > Testing:
> > - Compiled with W=1 for each patch in the series
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
> Jonathan, it seems the missing part of the initial unification. Please, apply
> to your testing branch.
Applied to the testing branch of iio.git.

Thanks,

Jonathan

>