Re: [PATCH 3/5] HID: core: Export some report item parsing functions.

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

 



On Sun, Feb 28, 2021 at 3:30 AM Ronald Tschalär <ronald@xxxxxxxxxxxxx> wrote:
>
> These are useful to drivers that need to scan or parse reports
> themselves.

...

> -       while ((start = fetch_item(start, end, &item)) != NULL)
> +       while ((start = hid_fetch_item(start, end, &item)) != NULL)
>                 dispatch_type[item.type](parser, &item);

> -       while ((next = fetch_item(start, end, &item)) != NULL) {
> +       while ((next = hid_fetch_item(start, end, &item)) != NULL) {
>                 start = next;

I don't see the full picture, but perhaps you may also introduce
for_each_hid_item() or so.

-- 
With Best Regards,
Andy Shevchenko




[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