iio: adc: ltc2497: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 2 Sep 2023 17:05:29 +0000 (18:05 +0100)
committerJonathan Cameron <jonathan.cameron@huawei.com>
Tue, 12 Sep 2023 09:42:04 +0000 (10:42 +0100)
commit6c70012df1f39bb9bd015b6b6383f66cde95bc94
tree46f60d971e19a86ac1f18866dfbfb3ca83a98a29
parentf6b1737921dd38919a6d25826a953bd6d04c8c4b
iio: adc: ltc2497: Simplify probe()

Simpilfy probe() by replacing device_get_match_data() and id lookup for
retrieving match data by using i2c_get_match_data().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230902170529.62297-1-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ltc2497.c