mbox series

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

Message ID 20240322003713.6918-1-l.rubusch@gmail.com (mailing list archive)
Headers show
Series iio: adxl345: add spi-3wire | expand

Message

Lothar Rubusch March 22, 2024, 12:37 a.m. UTC
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(-)