summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer/Makefile
diff options
context:
space:
mode:
authorIrina Tirdea2015-04-29 20:16:37 +0200
committerJonathan Cameron2015-05-10 21:31:43 +0200
commitc91746a2361d75bb8ded6ef4813a4a2dcdcd845e (patch)
tree4b9536a452e67f0eb5c44af46634d9f11397da27 /drivers/iio/magnetometer/Makefile
parentStaging: iio: Allow compile test of GPIO consumers if !GPIOLIB (diff)
downloadkernel-qcow2-linux-c91746a2361d75bb8ded6ef4813a4a2dcdcd845e.tar.gz
kernel-qcow2-linux-c91746a2361d75bb8ded6ef4813a4a2dcdcd845e.tar.xz
kernel-qcow2-linux-c91746a2361d75bb8ded6ef4813a4a2dcdcd845e.zip
iio: magn: Add support for BMC150 magnetometer
Add support for the Bosh BMC150 Magnetometer. The specification can be downloaded from: http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf. The chip contains both an accelerometer and a magnetometer. This patch adds support only for the magnetometer part. The temperature compensation formulas are based on bmm050_api.c authored by contact@bosch.sensortec.com. Signed-off-by: Irina Tirdea <irina.tirdea@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer/Makefile')
-rw-r--r--drivers/iio/magnetometer/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/Makefile b/drivers/iio/magnetometer/Makefile
index 0f5d3c985799..e2c34594ff3f 100644
--- a/drivers/iio/magnetometer/Makefile
+++ b/drivers/iio/magnetometer/Makefile
@@ -13,3 +13,5 @@ st_magn-$(CONFIG_IIO_BUFFER) += st_magn_buffer.o
obj-$(CONFIG_IIO_ST_MAGN_I2C_3AXIS) += st_magn_i2c.o
obj-$(CONFIG_IIO_ST_MAGN_SPI_3AXIS) += st_magn_spi.o
+
+obj-$(CONFIG_BMC150_MAGN) += bmc150_magn.o