summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/Kconfig
diff options
context:
space:
mode:
authorEva Rachel Retuya <eraretuya@gmail.com>2017-03-04 11:31:25 +0300
committerJonathan Cameron <jic23@kernel.org>2017-03-04 19:45:08 +0300
commit5170512cf6a17373b3a8bb63187a6e90ddf7c1ca (patch)
tree23477c75026e73231dda78d0dd9bca20739d39a8 /drivers/iio/accel/Kconfig
parent31fd2c70b26d1fb803283c0488e3f84a2de1f329 (diff)
downloadlinux-5170512cf6a17373b3a8bb63187a6e90ddf7c1ca.tar.xz
iio: accel: adxl345: Split driver into core and I2C
Move I2C-specific code into its own file and rely on regmap to access registers. The core code provides access to x, y, z and scale readings. Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/Kconfig')
-rw-r--r--drivers/iio/accel/Kconfig13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index 26b86149f20b..a725227aa7ca 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -6,16 +6,21 @@
menu "Accelerometers"
config ADXL345
- tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer Driver"
- depends on !(INPUT_ADXL34X=y || INPUT_ADXL34X=m)
+ tristate
+
+config ADXL345_I2C
+ tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer I2C Driver"
+ depends on INPUT_ADXL34X=n
depends on I2C
+ select ADXL345
select REGMAP_I2C
help
Say Y here if you want to build support for the Analog Devices
ADXL345 3-axis digital accelerometer.
- To compile this driver as a module, choose M here: the
- module will be called adxl345.
+ To compile this driver as a module, choose M here: the module
+ will be called adxl345_i2c and you will also get adxl345_core
+ for the core module.
config BMA180
tristate "Bosch BMA180/BMA250 3-Axis Accelerometer Driver"