OSDN Git Service

iio: adxl372: Refactor the driver
authorStefan Popa <stefan.popa@analog.com>
Tue, 4 Sep 2018 14:11:31 +0000 (17:11 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Sep 2018 14:28:27 +0000 (15:28 +0100)
commitd9e8fd0421c2047ac233141612a433490963d211
treefd59276ecda29f34c1aaa3a7f32ea70b0dad3f99
parent7ac346823bbb284e9e66a3d4044c108b99c7149c
iio: adxl372: Refactor the driver

This patch restructures the existing adxl372 driver by adding a module for
SPI and a header file, while the baseline module deals with the chip-logic.

This is a necessary step, as this driver should support in the future
a similar device which differs only in the type of interface used (I2C
instead of SPI).

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
MAINTAINERS
drivers/iio/accel/Kconfig
drivers/iio/accel/Makefile
drivers/iio/accel/adxl372.c
drivers/iio/accel/adxl372.h [new file with mode: 0644]
drivers/iio/accel/adxl372_spi.c [new file with mode: 0644]