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

Configure Feed

Select the types of activity you want to include in your feed.

iio: temperature: tsys02d: 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>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221118224540.619276-191-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
6a911319 d7c94228

+3 -3
+3 -3
drivers/iio/temperature/tsys02d.c
··· 121 121 .attrs = &tsys02d_attribute_group, 122 122 }; 123 123 124 - static int tsys02d_probe(struct i2c_client *client, 125 - const struct i2c_device_id *id) 124 + static int tsys02d_probe(struct i2c_client *client) 126 125 { 126 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 127 127 struct ms_ht_dev *dev_data; 128 128 struct iio_dev *indio_dev; 129 129 int ret; ··· 174 174 MODULE_DEVICE_TABLE(i2c, tsys02d_id); 175 175 176 176 static struct i2c_driver tsys02d_driver = { 177 - .probe = tsys02d_probe, 177 + .probe_new = tsys02d_probe, 178 178 .id_table = tsys02d_id, 179 179 .driver = { 180 180 .name = "tsys02d",