Skip to content

Commit

Permalink
Staging: iio: add digital compass hmc5843 driver
Browse files Browse the repository at this point in the history
Adding support for the Honeywell HMC5843. The interface to the device is
i2c

TODO:
Adding the documentation

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Shubhrajyoti D authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent 5fc9e4d commit b4e1782
Show file tree
Hide file tree
Showing 5 changed files with 646 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/iio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ source "drivers/staging/iio/adc/Kconfig"
source "drivers/staging/iio/gyro/Kconfig"
source "drivers/staging/iio/imu/Kconfig"
source "drivers/staging/iio/light/Kconfig"
source "drivers/staging/iio/magnetometer/Kconfig"

source "drivers/staging/iio/trigger/Kconfig"

Expand Down
1 change: 1 addition & 0 deletions drivers/staging/iio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ obj-y += gyro/
obj-y += imu/
obj-y += light/
obj-y += trigger/
obj-y += magnetometer/
15 changes: 15 additions & 0 deletions drivers/staging/iio/magnetometer/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Magnetometer sensors
#
comment "Magnetometer sensors"

config SENSORS_HMC5843
tristate "Honeywell HMC5843 3-Axis Magnetometer"
depends on I2C
help
Say Y here to add support for the Honeywell HMC 5843 3-Axis
Magnetometer (digital compass).

To compile this driver as a module, choose M here: the module
will be called hmc5843

5 changes: 5 additions & 0 deletions drivers/staging/iio/magnetometer/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Makefile for industrial I/O Magnetometer sensors
#

obj-$(CONFIG_SENSORS_HMC5843) += hmc5843.o
Loading

0 comments on commit b4e1782

Please sign in to comment.