iio: dac: ti-dac5571: Use i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 18 Aug 2023 17:39:06 +0000 (18:39 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 11 Sep 2023 19:12:41 +0000 (20:12 +0100)
commit17dc571687c5cc60e88fe29a33da0b9c64647086
tree94d88e6a60f2321c6546477438090e1c6e04d9dc
parent21fd3b1373f65c6a9d910642ecef194a077d1624
iio: dac: ti-dac5571: Use i2c_get_match_data()

Replace device_get_match_data() and id lookup for retrieving match data
by i2c_get_match_data() by converting enum->pointer for data in the
match table.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230818173907.323640-2-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ti-dac5571.c