Re: [PATCH 2/6] hid: Scan the device for group info before adding it

From: Henrik Rydberg
Date: Tue Apr 24 2012 - 08:37:34 EST


> > +static int hid_scan_report(struct hid_device *hid)
> > +{
> > + unsigned int page = 0, delim = 0;
> > + __u8 *start = hid->dev_rdesc;
> > + __u8 *end = start + hid->dev_rsize;
>
> Where do these dev_rdesc and dev_rsize come from? Your patchset doesn't
> seem to be changing the corresponding struct device members (which are
> rdesc and rsize currently), right?

Those members are added in the enable-report-fixup-on-rebind patchset,
which this patchset builds on. I only sent that patchset once, to
avoid confusion. Maybe I created some instead. :-)

And yes, the scanning algorithms do not touch the rdesc/rsize
variables, nor the collection state. Those are handled upon attachment
of the driver.

Thanks,
Henrik
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/