# Re: \[PATCH 2/2\] iio: hid-sensor-hub: Remove hard coded indexes

- From: Jiri Kosina \<hidden\>
- Date: 2014-02-17 14:10:22 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2014/02/8923184
- Thread: https://ratatoskr.run/linux-iio/2014/02/8923184/t.md

```text
On Sat, 8 Feb 2014, Jonathan Cameron wrote:

> > > Remove the hard coded indexes, instead search for usage id and
> > > use the index to set the power and report state.
> > > This will fix issue, where the report descriptor doesn't contain
> > > the full list of possible selector for power and report state.
> > > 
> > > Signed-off-by: Srinivas Pandruvada <redacted>
> Acked-by: Jonathan Cameron <redacted>
> > 
> > Jonathan, I'd probably take this together with the patch for HID API
> > change. Could you please provide your Ack/Signoff, and I'll take it
> > through my tree, if you agree?
> Agreed. Help yourself ;)

Thanks! Now applied.

> Thanks and sorry for the slow response.  Amazing the backlog that builds
> up if you take about 3 weeks out (more or less)

Yeah, it basically immediately destroys all the energy you gained during 
the time off :)

-- 
Jiri Kosina
SUSE Labs
```
