diff options
author | Eva Rachel Retuya <eraretuya@gmail.com> | 2017-03-04 11:31:25 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-03-04 19:45:08 +0300 |
commit | 5170512cf6a17373b3a8bb63187a6e90ddf7c1ca (patch) | |
tree | 23477c75026e73231dda78d0dd9bca20739d39a8 /drivers/iio/accel/Makefile | |
parent | 31fd2c70b26d1fb803283c0488e3f84a2de1f329 (diff) | |
download | linux-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/Makefile')
-rw-r--r-- | drivers/iio/accel/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/accel/Makefile b/drivers/iio/accel/Makefile index 618488de1161..3f4a6d62d84c 100644 --- a/drivers/iio/accel/Makefile +++ b/drivers/iio/accel/Makefile @@ -3,7 +3,8 @@ # # When adding new entries keep the list in alphabetical order -obj-$(CONFIG_ADXL345) += adxl345.o +obj-$(CONFIG_ADXL345) += adxl345_core.o +obj-$(CONFIG_ADXL345_I2C) += adxl345_i2c.o obj-$(CONFIG_BMA180) += bma180.o obj-$(CONFIG_BMA220) += bma220_spi.o obj-$(CONFIG_BMC150_ACCEL) += bmc150-accel-core.o |