summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/Kconfig
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-09-01 11:44:41 +0200
committerJonathan Cameron <jic23@kernel.org>2016-09-18 11:29:12 +0100
commita483ab796960c9080dc9f97f5905d11debad3df9 (patch)
treef750a86de062a43b3c609efe5686f18fb936710e /drivers/iio/accel/Kconfig
parent0d1fb2d52d8b4a1124cb2db7d22c4131ad5805cf (diff)
iio: accel: kxsd9: Add I2C transport
This adds I2C regmap transport for the KXSD9 driver. Tested on the KXSD9 sensor on the APQ8060 Dragonboard. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/Kconfig')
-rw-r--r--drivers/iio/accel/Kconfig12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index eebc20d6c827..8824400d4911 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -121,7 +121,7 @@ config KXSD9
tristate "Kionix KXSD9 Accelerometer Driver"
help
Say yes here to build support for the Kionix KXSD9 accelerometer.
- Currently this only supports the device via an SPI interface.
+ It can be accessed using an (optional) SPI or I2C interface.
To compile this driver as a module, choose M here: the module
will be called kxsd9.
@@ -136,6 +136,16 @@ config KXSD9_SPI
Say yes here to enable the Kionix KXSD9 accelerometer
SPI transport channel.
+config KXSD9_I2C
+ tristate "Kionix KXSD9 I2C transport"
+ depends on KXSD9
+ depends on I2C
+ default KXSD9
+ select REGMAP_I2C
+ help
+ Say yes here to enable the Kionix KXSD9 accelerometer
+ I2C transport channel.
+
config KXCJK1013
tristate "Kionix 3-Axis Accelerometer Driver"
depends on I2C