Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: temperature: mlx90632: Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Crt Mori <cmo@melexis.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221118224540.619276-187-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
40fbb59b 160c7140

+3 -3
+3 -3
drivers/iio/temperature/mlx90632.c
··· 1168 1168 return ret; 1169 1169 } 1170 1170 1171 - static int mlx90632_probe(struct i2c_client *client, 1172 - const struct i2c_device_id *id) 1171 + static int mlx90632_probe(struct i2c_client *client) 1173 1172 { 1173 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 1174 1174 struct mlx90632_data *mlx90632; 1175 1175 struct iio_dev *indio_dev; 1176 1176 struct regmap *regmap; ··· 1337 1337 .of_match_table = mlx90632_of_match, 1338 1338 .pm = pm_ptr(&mlx90632_pm_ops), 1339 1339 }, 1340 - .probe = mlx90632_probe, 1340 + .probe_new = mlx90632_probe, 1341 1341 .id_table = mlx90632_id, 1342 1342 }; 1343 1343 module_i2c_driver(mlx90632_driver);