mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
Staging: iio: add digital compass hmc5843 driver
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5fc9e4d527
commit
b4e178224c
@@ -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"
|
||||
|
||||
|
||||
@@ -15,3 +15,4 @@ obj-y += gyro/
|
||||
obj-y += imu/
|
||||
obj-y += light/
|
||||
obj-y += trigger/
|
||||
obj-y += magnetometer/
|
||||
|
||||
15
drivers/staging/iio/magnetometer/Kconfig
Normal file
15
drivers/staging/iio/magnetometer/Kconfig
Normal file
@@ -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
drivers/staging/iio/magnetometer/Makefile
Normal file
5
drivers/staging/iio/magnetometer/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Makefile for industrial I/O Magnetometer sensors
|
||||
#
|
||||
|
||||
obj-$(CONFIG_SENSORS_HMC5843) += hmc5843.o
|
||||
624
drivers/staging/iio/magnetometer/hmc5843.c
Normal file
624
drivers/staging/iio/magnetometer/hmc5843.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user