Skip to content

Commit

Permalink
iio: hid-sensors: Added Gyroscope 3D
Browse files Browse the repository at this point in the history
Added usage id processing for Gyroscope 3D. 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.

Signed-off-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
srinivas pandruvada authored and Jonathan Cameron committed Sep 6, 2012
1 parent 45fe6f7 commit c5bdbef
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ source "drivers/iio/light/Kconfig"
source "drivers/iio/frequency/Kconfig"
source "drivers/iio/dac/Kconfig"
source "drivers/iio/common/Kconfig"
source "drivers/iio/gyro/Kconfig"

endif # IIO
1 change: 1 addition & 0 deletions drivers/iio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ obj-y += light/
obj-y += frequency/
obj-y += dac/
obj-y += common/
obj-y += gyro/
16 changes: 16 additions & 0 deletions drivers/iio/gyro/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# IIO Digital Gyroscope Sensor drivers configuration
#
menu "Digital gyroscope sensors"

config HID_SENSOR_GYRO_3D
depends on HID_SENSOR_HUB
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
select HID_SENSOR_IIO_COMMON
tristate "HID Gyroscope 3D"
help
Say yes here to build support for the HID SENSOR
Gyroscope 3D.

endmenu
5 changes: 5 additions & 0 deletions drivers/iio/gyro/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Makefile for industrial I/O gyroscope sensor drivers
#

obj-$(CONFIG_HID_SENSOR_GYRO_3D) += hid-sensor-gyro-3d.o
Loading

0 comments on commit c5bdbef

Please sign in to comment.