iio: accel: adxl355: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 16 Jul 2023 17:52:15 +0000 (18:52 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Jul 2023 16:24:51 +0000 (17:24 +0100)
commitad25fc289be9532f486ef2cc6156e8d5acb060db
tree3eb71e8afea8c163d04acbd0ce00ea9924ea0791
parent3a06b2845a09a2c7bcbd909d4289353f054363e9
iio: accel: adxl355: Simplify probe()

Simplify the probe() by replacing of_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: Puranjay Mohan <puranjay12@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230716175218.130557-2-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl355_i2c.c