summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/Kconfig
diff options
context:
space:
mode:
authorRui Miguel Silva2019-04-12 18:48:58 +0200
committerJonathan Cameron2019-04-22 12:34:12 +0200
commita034cbe1c412628383609f1634154348e00e2990 (patch)
tree87b80768fe1315b51ef54fb975ba44500abc2a9c /drivers/iio/gyro/Kconfig
parentiio: gyro: add core driver for fxas21002c (diff)
downloadkernel-qcow2-linux-a034cbe1c412628383609f1634154348e00e2990.tar.gz
kernel-qcow2-linux-a034cbe1c412628383609f1634154348e00e2990.tar.xz
kernel-qcow2-linux-a034cbe1c412628383609f1634154348e00e2990.zip
iio: gyro: fxas21002c: add i2c driver
Add the real driver to talk over i2c and use the fxas21002c core for the main tasks. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/gyro/Kconfig')
-rw-r--r--drivers/iio/gyro/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
index cfd2cf44bac8..71b6552ee06b 100644
--- a/drivers/iio/gyro/Kconfig
+++ b/drivers/iio/gyro/Kconfig
@@ -77,6 +77,8 @@ config FXAS21002C
tristate "NXP FXAS21002C Gyro Sensor"
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
+ select FXAS21002C_I2C if (I2C)
+ depends on I2C
help
Say yes here to build support for NXP FXAS21002C Tri-axis Gyro
Sensor driver connected via I2C or SPI.
@@ -84,6 +86,10 @@ config FXAS21002C
This driver can also be built as a module. If so, the module
will be called fxas21002c_i2c or fxas21002c_spi.
+config FXAS21002C_I2C
+ tristate
+ select REGMAP_I2C
+
config HID_SENSOR_GYRO_3D
depends on HID_SENSOR_HUB
select IIO_BUFFER