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: tsys01: Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

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

authored by

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

+2 -3
+2 -3
drivers/iio/temperature/tsys01.c
··· 176 176 return devm_iio_device_register(dev, indio_dev); 177 177 } 178 178 179 - static int tsys01_i2c_probe(struct i2c_client *client, 180 - const struct i2c_device_id *id) 179 + static int tsys01_i2c_probe(struct i2c_client *client) 181 180 { 182 181 struct tsys01_dev *dev_data; 183 182 struct iio_dev *indio_dev; ··· 218 219 MODULE_DEVICE_TABLE(of, tsys01_of_match); 219 220 220 221 static struct i2c_driver tsys01_driver = { 221 - .probe = tsys01_i2c_probe, 222 + .probe_new = tsys01_i2c_probe, 222 223 .id_table = tsys01_id, 223 224 .driver = { 224 225 .name = "tsys01",