OSDN Git Service

FOR_UPSTREAM: hid: hid-sensor-hub: Add selector api
authorArchana <archana.patni@linux.intel.com>
Fri, 31 Jan 2014 11:38:30 +0000 (06:38 -0500)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 18 Mar 2014 02:32:27 +0000 (10:32 +0800)
commit94378beef3b7cfb0169f6e43aedc652398698e85
tree7644ce6d40aadbf143a7903ee7ba73d5070de5f3
parentfcdfd3fd486a4c8dece32f9d09d4a0f844be60cc
FOR_UPSTREAM: hid: hid-sensor-hub: Add selector api

API is added to get the index of a selector. This API
will search for usage id in the field usage list and
return the index.

For: AIAF-4024

Change-Id: I63fd419b5908f5145c8384c5a4ff2855ba562129
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-on: https://android.intel.com/160116
Reviewed-by: Patni, Archana <archana.patni@intel.com>
Tested-by: Patni, Archana <archana.patni@intel.com>
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: sys_abtbuild <sys_abtbuild@intel.com>
Reviewed-by: Nordell, Joakim <joakim.nordell@intel.com>
Reviewed-by: Odeberg, Hans <hans.odeberg@intel.com>
drivers/hid/hid-sensor-hub.c
include/linux/hid-sensor-hub.h