iio: potentiometer: mcp4018: Use i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 23 Jul 2023 10:52:09 +0000 (11:52 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 29 Jul 2023 14:53:59 +0000 (15:53 +0100)
commitb68adc0ee5b5d12e6eb683e523f1158dabd19f43
treeb07bbfaf1fcf5f67ba89c4ef45a128f2acef1694
parent65659a8df1f5130041417c65b95d91bc048555ea
iio: potentiometer: mcp4018: Use i2c_get_match_data()

Replace of_device_get_match_data() and i2c_match_id() by i2c_get_match
_data() by making similar I2C and DT-based matching table.

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