iio: magnetometer: yamaha-yas530: Use i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 12 Aug 2023 06:57:40 +0000 (07:57 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 11 Sep 2023 19:12:41 +0000 (20:12 +0100)
commit72d365398d96293291abdab23ab6be08e86001fa
tree2bd0c2123cf93c5c1e09c5b92be0fc7b2cf62649
parent541d803abf33caa7243c99361a47f7b998966815
iio: magnetometer: yamaha-yas530: Use i2c_get_match_data()

Simplify the probe() by replacing device_get_match_data() with
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/20230812065741.20990-2-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/yamaha-yas530.c