iio: accel: adxl345: Use I2C regmap instead of direct I2C access
authorEva Rachel Retuya <eraretuya@gmail.com>
Sat, 4 Mar 2017 08:31:24 +0000 (16:31 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 4 Mar 2017 16:41:27 +0000 (16:41 +0000)
commit31fd2c70b26d1fb803283c0488e3f84a2de1f329
tree6fb4655043f19fa1eed499f88b83c3885efa9bfb
parenta70b93bcb36ffe0844b7b4ca33e5c5234f629006
iio: accel: adxl345: Use I2C regmap instead of direct I2C access

Convert the driver to use regmap instead of I2C-specific functions. This
is done in preparation for splitting this driver into core and
I2C-specific code as well as introduction of SPI driver.

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>
drivers/iio/accel/Kconfig
drivers/iio/accel/adxl345.c