OSDN Git Service
FOR_UPSTREAM: 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.
For: AIAF-4024
Change-Id: I35a92f2d9766fc612f7ab9f9bed1152e7d6e14bd
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-on: https://android.intel.com/160118
Reviewed-by: Patni, Archana <archana.patni@intel.com>
Tested-by: Patni, Archana <archana.patni@intel.com>
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Nordell, Joakim <joakim.nordell@intel.com>
Tested-by: sys_abtbuild <sys_abtbuild@intel.com>
Reviewed-by: Odeberg, Hans <hans.odeberg@intel.com>