iio: chemical: atlas-ezo-sensor: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 18 Aug 2023 18:31:28 +0000 (19:31 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 11 Sep 2023 19:12:41 +0000 (20:12 +0100)
commit7f8643aa5e0fbf540eeba412fc2a7d4dfc2f22f8
treee96e045361544be9404813ec29fe7f7ab3a65eca
parentab3555b4b5b08fb03b8da904cc3fedbba91560df
iio: chemical: atlas-ezo-sensor: Simplify probe()

Simplify the probe() by replacing device_get_match_data() and ID lookup
match 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230818183128.334233-1-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/atlas-ezo-sensor.c