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

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
576eb2b0 94c80ea7

+2 -3
+2 -3
drivers/iio/proximity/rfd77402.c
··· 257 257 rfd77402_powerdown(client); 258 258 } 259 259 260 - static int rfd77402_probe(struct i2c_client *client, 261 - const struct i2c_device_id *id) 260 + static int rfd77402_probe(struct i2c_client *client) 262 261 { 263 262 struct rfd77402_data *data; 264 263 struct iio_dev *indio_dev; ··· 318 319 .name = RFD77402_DRV_NAME, 319 320 .pm = pm_sleep_ptr(&rfd77402_pm_ops), 320 321 }, 321 - .probe = rfd77402_probe, 322 + .probe_new = rfd77402_probe, 322 323 .id_table = rfd77402_id, 323 324 }; 324 325