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>
Showing
- MAINTAINERS 1 addition, 0 deletionsMAINTAINERS
- drivers/iio/accel/Kconfig 8 additions, 3 deletionsdrivers/iio/accel/Kconfig
- drivers/iio/accel/Makefile 1 addition, 0 deletionsdrivers/iio/accel/Makefile
- drivers/iio/accel/adxl372.c 25 additions, 48 deletionsdrivers/iio/accel/adxl372.c
- drivers/iio/accel/adxl372.h 15 additions, 0 deletionsdrivers/iio/accel/adxl372.h
- drivers/iio/accel/adxl372_spi.c 52 additions, 0 deletionsdrivers/iio/accel/adxl372_spi.c
Loading
Please register or sign in to comment