-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: hid-sensors: Added Compass/Magnetometer 3D
Added usage id processing for Compass 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
c5bdbef
commit bc1d57b
Showing
5 changed files
with
443 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ obj-y += frequency/ | |
obj-y += dac/ | ||
obj-y += common/ | ||
obj-y += gyro/ | ||
obj-y += magnetometer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Magnetometer sensors | ||
# | ||
menu "Magnetometer sensors" | ||
|
||
config HID_SENSOR_MAGNETOMETER_3D | ||
depends on HID_SENSOR_HUB | ||
select IIO_BUFFER | ||
select IIO_TRIGGERED_BUFFER | ||
select HID_SENSOR_IIO_COMMON | ||
tristate "HID Magenetometer 3D" | ||
help | ||
Say yes here to build support for the HID SENSOR | ||
Magnetometer 3D. | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Makefile for industrial I/O Magnetometer sensor drivers | ||
# | ||
|
||
obj-$(CONFIG_HID_SENSOR_MAGNETOMETER_3D) += hid-sensor-magn-3d.o |
Oops, something went wrong.