iio: potentiometer: mcp4531: Use i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 23 Jul 2023 10:27:43 +0000 (11:27 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 29 Jul 2023 14:55:48 +0000 (15:55 +0100)
commit9afc8c6dc68f2f58c4ad7c7c72158e1a7bb5395e
tree5b26664856a21ae6bc7d46b9386e24b2fc153bc6
parentb68adc0ee5b5d12e6eb683e523f1158dabd19f43
iio: potentiometer: mcp4531: Use i2c_get_match_data()

Replace 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/20230723102743.102284-1-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/potentiometer/mcp4531.c