Commit 4545d477 authored by Biju Das's avatar Biju Das Committed by Jonathan Cameron

iio: mlx90614: Use i2c_get_match_data()

Replace device_get_match_data()->i2c_get_match_data() to extend matching
support for ID table.
Signed-off-by: default avatarBiju 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.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent fe11e389
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment