summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/Kconfig
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2015-09-21 12:55:16 +0200
committerJonathan Cameron <jic23@kernel.org>2015-10-03 12:06:38 +0100
commitf9ab96e212808123fbd9072d580a59194e5cd410 (patch)
treea198e0cfd245fd075fbcb0e038c2c15de11e82fe /drivers/iio/accel/Kconfig
parent55637c38377a301cd0768cee73021e43d05de543 (diff)
iio: bmc150: Add SPI driver
Add a simple SPI driver which initializes the spi regmap for the bmc150 core driver. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/Kconfig')
-rw-r--r--drivers/iio/accel/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index bb00770b63bd..969428dd6329 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -23,6 +23,7 @@ config BMC150_ACCEL
select IIO_TRIGGERED_BUFFER
select REGMAP
select BMC150_ACCEL_I2C if I2C
+ select BMC150_ACCEL_SPI if SPI
help
Say yes here to build support for the following Bosch accelerometers:
BMC150, BMI055, BMA250E, BMA222E, BMA255, BMA280.
@@ -35,6 +36,10 @@ config BMC150_ACCEL_I2C
tristate
select REGMAP_I2C
+config BMC150_ACCEL_SPI
+ tristate
+ select REGMAP_SPI
+
config HID_SENSOR_ACCEL_3D
depends on HID_SENSOR_HUB
select IIO_BUFFER