summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorClark Wang <xiaoning.wang@nxp.com>2019-08-14 19:54:58 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:44:30 +0800
commit33c0437a78583d14002878c97679d903a1c05690 (patch)
tree99a5a8b8bfcca59a6a8b5f64a840a2d2dccb8170 /drivers/hwmon
parentd047f4467e5c50ad99ca5cfdb773e114a4222539 (diff)
hwmon: mag3110: add mag3110 makefile and kconfig string
Add makefile and kconfig string for mag3110. Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/Kconfig9
-rw-r--r--drivers/hwmon/Makefile1
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 13a6b4afb4b3..d2d1b65382a3 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1950,4 +1950,13 @@ config SENSORS_ATK0110
endif # ACPI
+config SENSORS_MAG3110
+ tristate "Freescale MAG3110 e-compass sensor"
+ depends on I2C && SYSFS
+ help
+ If you say yes here you get support for the Freescale MAG3110
+ e-compass sensor.
+ This driver can also be built as a module. If so, the module
+ will be called mag3110.
+
endif # HWMON
diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile
index 40c036ea45e6..dd77481c6fae 100644
--- a/drivers/hwmon/Makefile
+++ b/drivers/hwmon/Makefile
@@ -177,6 +177,7 @@ obj-$(CONFIG_SENSORS_W83L786NG) += w83l786ng.o
obj-$(CONFIG_SENSORS_WM831X) += wm831x-hwmon.o
obj-$(CONFIG_SENSORS_WM8350) += wm8350-hwmon.o
obj-$(CONFIG_SENSORS_XGENE) += xgene-hwmon.o
+obj-$(CONFIG_SENSORS_MAG3110) += mag3110.o
obj-$(CONFIG_SENSORS_OCC) += occ/
obj-$(CONFIG_PMBUS) += pmbus/