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. v2->v3: * Added Rb tag from Geert for patch#1. * Added link to lore for Closes tag. 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(-) -- 2.25.1