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

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
89824f4c 40fbb59b

+2 -3
+2 -3
drivers/iio/temperature/tmp006.c
··· 212 212 tmp006_power(dev, false); 213 213 } 214 214 215 - static int tmp006_probe(struct i2c_client *client, 216 - const struct i2c_device_id *id) 215 + static int tmp006_probe(struct i2c_client *client) 217 216 { 218 217 struct iio_dev *indio_dev; 219 218 struct tmp006_data *data; ··· 283 284 .name = "tmp006", 284 285 .pm = pm_sleep_ptr(&tmp006_pm_ops), 285 286 }, 286 - .probe = tmp006_probe, 287 + .probe_new = tmp006_probe, 287 288 .id_table = tmp006_id, 288 289 }; 289 290 module_i2c_driver(tmp006_driver);