iio: mlx90614: Use i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 12 Aug 2023 16:22:22 +0000 (17:22 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 11 Sep 2023 19:12:42 +0000 (20:12 +0100)
Replace device_get_match_data()->i2c_get_match_data() to extend matching
support for ID table.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Acked-by: "Crt Mori <cmo@melexis.com>"
Link: https://lore.kernel.org/r/20230812162222.200004-1-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/mlx90614.c

index 07bb5df24ab339a092db534d7651fe8a54f579b8..740018d4b3dfb35e4c763f1f68234a77bdf1aed8 100644 (file)
@@ -600,7 +600,7 @@ static int mlx90614_probe(struct i2c_client *client)
        data->client = client;
        mutex_init(&data->lock);
        data->wakeup_gpio = mlx90614_probe_wakeup(client);
-       data->chip_info = device_get_match_data(&client->dev);
+       data->chip_info = i2c_get_match_data(client);
 
        mlx90614_wakeup(data);