mbox series

[v2,0/2] Use i2c_get_match_data() instead of device_get_match_data()

Message ID 20230722200718.142366-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Use i2c_get_match_data() instead of device_get_match_data() | expand

Message

Biju Das July 22, 2023, 8:07 p.m. UTC
Use i2c_get_match_data() to get match data for I2C, ACPI and
DT-based matching instead of device_get_match_data() the one for
ACPI/DT-based matching.

This patch series is only compile tested.

v1->v2:
 * Added patch#1 for fixing adxl313_i2c_id[] table.
 * Added Rb tag from Geert
 * Removed error check as all tables have data pointers.
 * retained Rb tag as the change is trivial.

Biju Das (2):
  iio: accel: adxl313: Fix adxl313_i2c_id[] table
  iio: accel: adxl313: Use i2c_get_match_data

 drivers/iio/accel/adxl313_i2c.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)