diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2014-04-29 01:51:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-04-29 23:11:53 +0200 |
commit | fc18dddc0625cd1fdf6a823e85138ff05848a85f (patch) | |
tree | ebc67d8d86ed874316c8bb856b6ad77aa3f52450 /drivers/iio/orientation/Kconfig | |
parent | IIO: core: Add quaternion modifier (diff) | |
download | linux-fc18dddc0625cd1fdf6a823e85138ff05848a85f.tar.xz linux-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 'drivers/iio/orientation/Kconfig')
-rw-r--r-- | drivers/iio/orientation/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/iio/orientation/Kconfig b/drivers/iio/orientation/Kconfig index 58c62c837e12..e3aa1e58d920 100644 --- a/drivers/iio/orientation/Kconfig +++ b/drivers/iio/orientation/Kconfig @@ -16,4 +16,16 @@ config HID_SENSOR_INCLINOMETER_3D Say yes here to build support for the HID SENSOR Inclinometer 3D. +config HID_SENSOR_DEVICE_ROTATION + depends on HID_SENSOR_HUB + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER + select HID_SENSOR_IIO_COMMON + select HID_SENSOR_IIO_TRIGGER + tristate "HID Device Rotation" + help + Say yes here to build support for the HID SENSOR + device rotation. The output of a device rotation sensor + is presented using quaternion format. + endmenu |