summaryrefslogtreecommitdiff
path: root/drivers/iio/gyro/Kconfig
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2015-08-19 14:12:45 +0200
committerJonathan Cameron <jic23@kernel.org>2015-08-31 17:04:23 +0100
commit13426454b6493a847cebe276fb1ec3a7f1d48d0e (patch)
tree44e0323857282192fc582d197e5b2581b50c300a /drivers/iio/gyro/Kconfig
parentcb119d5350839297bbe8a382dbb2feff545742b5 (diff)
iio: bmg160: Separate i2c and core driver
This patch separates the core driver using regmap and the i2c driver which creates the i2c regmap. Also in the Kconfig file BMG160 and BMG160_I2C are separate now. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/gyro/Kconfig')
-rw-r--r--drivers/iio/gyro/Kconfig15
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
index cf82d74139a2..94526b13d49f 100644
--- a/drivers/iio/gyro/Kconfig
+++ b/drivers/iio/gyro/Kconfig
@@ -52,16 +52,21 @@ config ADXRS450
config BMG160
tristate "BOSCH BMG160 Gyro Sensor"
- depends on I2C
+ depends on (I2C || SPI_MASTER)
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
- select REGMAP_I2C
+ select BMG160_I2C if (I2C)
help
- Say yes here to build support for Bosch BMG160 Tri-axis Gyro Sensor
- driver. This driver also supports BMI055 gyroscope.
+ Say yes here to build support for BOSCH BMG160 Tri-axis Gyro Sensor
+ driver connected via I2C or SPI. This driver also supports BMI055
+ gyroscope.
This driver can also be built as a module. If so, the module
- will be called bmg160.
+ will be called bmg160_i2c.
+
+config BMG160_I2C
+ tristate
+ select REGMAP_I2C
config HID_SENSOR_GYRO_3D
depends on HID_SENSOR_HUB