[PATCH v3 0/2] Match data improvements for adxl345 driver

From: Biju Das
Date: Sun Sep 03 2023 - 05:11:50 EST


This patch series aims to add match data improvements for adxl345 driver.

This patch series is only compile tested.

v2->v3:
* Replaced struct adxl3x5_chip_info->struct adxl345_chip_info
* Simplified adxl345_read_raw()
* Dropped enum adxl345_device_type as there is no user
v1->v2:
* Replaced EINVAL->ENODEV for invalid chip type.
* Kept leading commas for adxl345_*_info and adxl375_*_info.
* Restored switch statement in adxl345_core_probe()

Biju Das (2):
iio: accel: adxl345: Convert enum->pointer for data in match data
table
iio: accel: adxl345: Simplify adxl345_read_raw()

drivers/iio/accel/adxl345.h | 21 ++++++++++++--
drivers/iio/accel/adxl345_core.c | 47 ++++----------------------------
drivers/iio/accel/adxl345_i2c.c | 20 ++++++++++----
drivers/iio/accel/adxl345_spi.c | 20 ++++++++++----
4 files changed, 54 insertions(+), 54 deletions(-)

--
2.25.1