From: Srinivas Pandruvada Date: Fri, 24 Jan 2014 02:50:22 +0000 (-0800) Subject: iio: hid-sensor-hub: Remove hard coded indexes X-Git-Tag: v3.15-rc1~114^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a214ae5d1a66ead18c5e8c3a8d03b969b0ee647;p=pandora-kernel.git 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 Acked-by: Jonathan Cameron Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed