OSDN Git Service

iio: hid-sensor-accel-3d: add alternate sensitivity property
authorDaniel Leung <daniel.leung@intel.com>
Fri, 4 Jan 2013 19:26:54 +0000 (11:26 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 17:06:42 +0000 (01:06 +0800)
commit2b853d45c72bee80252f1cfe77694f09e58045fc
tree25787588596ade60e50b777dcebca33735a2c291
parent841cce417825032f4c70f833f6d9a869447e588d
iio: hid-sensor-accel-3d: add alternate sensitivity property

The sensor hub on some devices (e.g. Acer W700 tablet) advertises
another property as the sensitivity change control. This property
is also defined in the HID sensor hub document HUTRR39b.

This patch lets the sensor driver picks the new property to use
as sensitivity if the original one does not exist.

For: AXIA-1451
Change-Id: I9369c0e908be9f999de437ad6ba40712fc902f3d
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
drivers/iio/accel/hid-sensor-accel-3d.c