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

iio: temperature: mlx90614: 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-186-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
160c7140 7660d32e

+3 -3
+3 -3
drivers/iio/temperature/mlx90614.c
··· 537 537 return (ret & MLX90614_CONFIG_DUAL_MASK) ? 1 : 0; 538 538 } 539 539 540 - static int mlx90614_probe(struct i2c_client *client, 541 - const struct i2c_device_id *id) 540 + static int mlx90614_probe(struct i2c_client *client) 542 541 { 542 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 543 543 struct iio_dev *indio_dev; 544 544 struct mlx90614_data *data; 545 545 int ret; ··· 675 675 .of_match_table = mlx90614_of_match, 676 676 .pm = pm_ptr(&mlx90614_pm_ops), 677 677 }, 678 - .probe = mlx90614_probe, 678 + .probe_new = mlx90614_probe, 679 679 .remove = mlx90614_remove, 680 680 .id_table = mlx90614_id, 681 681 };