diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2014-01-24 06:50:22 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-02-17 18:09:47 +0400 |
commit | 1a214ae5d1a66ead18c5e8c3a8d03b969b0ee647 (patch) | |
tree | 7839c6acba3c7f1e2f86c2a88e2d167f1d234c56 /drivers/hid/hid-sensor-hub.c | |
parent | e02cee4819ae51f26333471c8eed50678b08572a (diff) | |
download | linux-1a214ae5d1a66ead18c5e8c3a8d03b969b0ee647.tar.xz |
iio: hid-sensor-hub: Remove hard coded indexes
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 <srinivas.pandruvada@linux.intel.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-sensor-hub.c')
0 files changed, 0 insertions, 0 deletions