[PATCH v2 0/3] iio: adxl345: add spi-3wire

Lothar Rubusch posted 3 patches 1 year, 10 months ago
.../bindings/iio/accel/adi,adxl345.yaml       |   2 +
drivers/iio/accel/adxl345.h                   |  44 ++++++-
drivers/iio/accel/adxl345_core.c              | 117 ++++++++++--------
drivers/iio/accel/adxl345_i2c.c               |  30 ++---
drivers/iio/accel/adxl345_spi.c               |  38 +++---
5 files changed, 146 insertions(+), 85 deletions(-)
[PATCH v2 0/3] iio: adxl345: add spi-3wire
Posted by Lothar Rubusch 1 year, 10 months ago
Move driver wide constants and fields into the header. Reduce
redundant info struct definitions. Allow to pass a function
pointer from SPI/I2C specific probe, and smaller refactorings.
Apply regmap_update_bits() in the core file replaces the
regmap_write() to format_data.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
---
V1 -> V2: split into spi-3wire and refactoring

Lothar Rubusch (3):
  iio: accel: adxl345: Update adxl345
  iio: accel: adxl345: Add spi-3wire feature
  dt-bindings: iio: accel: adxl345: Add spi-3wire

 .../bindings/iio/accel/adi,adxl345.yaml       |   2 +
 drivers/iio/accel/adxl345.h                   |  44 ++++++-
 drivers/iio/accel/adxl345_core.c              | 117 ++++++++++--------
 drivers/iio/accel/adxl345_i2c.c               |  30 ++---
 drivers/iio/accel/adxl345_spi.c               |  38 +++---
 5 files changed, 146 insertions(+), 85 deletions(-)

-- 
2.25.1