iio: accel: adxl313: Use i2c_get_match_data
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 25 Jul 2023 17:16:24 +0000 (18:16 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 29 Jul 2023 11:30:39 +0000 (12:30 +0100)
commit579f6b003ae230ffe81933c5941b7b7dba52370b
tree285410aad034e98225cb921ba816463f6a7568f3
parentf636554c4cd1c644109cc525900a056495b86cc9
iio: accel: adxl313: Use i2c_get_match_data

Replace device_get_match_data() and i2c_match_id() by i2c_get_match
_data() as we have similar I2C and DT-based matching table.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230725171624.331283-3-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl313_i2c.c