iio: pressure: ms5637: Use i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 3 Sep 2023 14:59:26 +0000 (15:59 +0100)
committerJonathan Cameron <jonathan.cameron@huawei.com>
Tue, 12 Sep 2023 09:42:04 +0000 (10:42 +0100)
commit22da192f43f7d302d02644efa192ba5a05d935c9
tree466e78225de925534037ea87afc47ed14e3c2409
parentc377e2febd91e21782f9106e663937f0629f39f1
iio: pressure: ms5637: Use i2c_get_match_data()

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

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