iio: hid-sensor-rotation: Add relative orientation sensor hid support
authorSong Hongyan <hongyan.song@intel.com>
Sun, 7 May 2017 10:24:24 +0000 (18:24 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 May 2017 11:22:27 +0000 (12:22 +0100)
commit9ff88edc5e7bad08bdd79a20f14533a5cf44b865
treeee0ed45bbfea629c601713e99c0c7e207db11687
parentb46c39a09838bb87d412a6ad7427ea58bf99ae02
iio: hid-sensor-rotation: Add relative orientation sensor hid support

Relative orientation(AG) sensor is a 6dof orientation sensor,
it depends on acceleration and gyroscope sensor data. It gives
a quaternion describing the orientation of the device relative
to an initial orientation. It is a standard HID sensor.

More information can be found in:
http://www.usb.org/developers/hidpage/HUTRR59_-_Usages_for_Wearables.pdf

Relative orientation(AG) sensor and dev rotation sensor have same
channels and share channel usage id. So the most of the code for
relative orientation sensor can be reused.

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Xu Even <even.xu@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/orientation/hid-sensor-rotation.c
include/linux/hid-sensor-ids.h