aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid-sensor-ids.h
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2014-04-29 00:51:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-04-29 22:11:53 +0100
commitfc18dddc0625cd1fdf6a823e85138ff05848a85f (patch)
treeebc67d8d86ed874316c8bb856b6ad77aa3f52450 /include/linux/hid-sensor-ids.h
parentIIO: core: Add quaternion modifier (diff)
downloadlinux-dev-fc18dddc0625cd1fdf6a823e85138ff05848a85f.tar.xz
linux-dev-fc18dddc0625cd1fdf6a823e85138ff05848a85f.zip
iio: hid-sensors: Added device rotation support
Added usage id processing for device rotation. This uses IIO interfaces for triggered buffer to present data to user mode.This uses HID sensor framework for registering callback events from the sensor hub. Data is exported to user space in the form of quaternion rotation format. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/hid-sensor-ids.h')
-rw-r--r--include/linux/hid-sensor-ids.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid-sensor-ids.h b/include/linux/hid-sensor-ids.h
index 14ead9e8eda8..109f0e633e01 100644
--- a/include/linux/hid-sensor-ids.h
+++ b/include/linux/hid-sensor-ids.h
@@ -76,6 +76,7 @@
#define HID_USAGE_SENSOR_ORIENT_TILT_Y 0x200480
#define HID_USAGE_SENSOR_ORIENT_TILT_Z 0x200481
+#define HID_USAGE_SENSOR_DEVICE_ORIENTATION 0x20008A
#define HID_USAGE_SENSOR_ORIENT_ROTATION_MATRIX 0x200482
#define HID_USAGE_SENSOR_ORIENT_QUATERNION 0x200483
#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX 0x200484