summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/Kconfig
diff options
context:
space:
mode:
authorMarkus Pargmann2015-09-21 12:55:15 +0200
committerJonathan Cameron2015-10-03 13:06:21 +0200
commit55637c38377a301cd0768cee73021e43d05de543 (patch)
treea05960293619bd904f79cdc8344f53d9d804f2b2 /drivers/iio/accel/Kconfig
parentiio: bcm150: Remove i2c_client from private data (diff)
downloadkernel-qcow2-linux-55637c38377a301cd0768cee73021e43d05de543.tar.gz
kernel-qcow2-linux-55637c38377a301cd0768cee73021e43d05de543.tar.xz
kernel-qcow2-linux-55637c38377a301cd0768cee73021e43d05de543.zip
iio: bmc150: Split the driver into core and i2c
Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Tested-by: Irina Tirdea <irina.tirdea@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/Kconfig')
-rw-r--r--drivers/iio/accel/Kconfig9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index dd3e293c619b..bb00770b63bd 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -19,21 +19,22 @@ config BMA180
config BMC150_ACCEL
tristate "Bosch BMC150 Accelerometer Driver"
- depends on I2C
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
select REGMAP
- select REGMAP_I2C
+ select BMC150_ACCEL_I2C if I2C
help
Say yes here to build support for the following Bosch accelerometers:
BMC150, BMI055, BMA250E, BMA222E, BMA255, BMA280.
- Currently this only supports the device via an i2c interface.
-
This is a combo module with both accelerometer and magnetometer.
This driver is only implementing accelerometer part, which has
its own address and register map.
+config BMC150_ACCEL_I2C
+ tristate
+ select REGMAP_I2C
+
config HID_SENSOR_ACCEL_3D
depends on HID_SENSOR_HUB
select IIO_BUFFER