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

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
7660d32e 038b0fac

+2 -3
+2 -3
drivers/iio/proximity/sx9500.c
··· 901 901 } 902 902 } 903 903 904 - static int sx9500_probe(struct i2c_client *client, 905 - const struct i2c_device_id *id) 904 + static int sx9500_probe(struct i2c_client *client) 906 905 { 907 906 int ret; 908 907 struct iio_dev *indio_dev; ··· 1055 1056 .of_match_table = of_match_ptr(sx9500_of_match), 1056 1057 .pm = pm_sleep_ptr(&sx9500_pm_ops), 1057 1058 }, 1058 - .probe = sx9500_probe, 1059 + .probe_new = sx9500_probe, 1059 1060 .remove = sx9500_remove, 1060 1061 .id_table = sx9500_id, 1061 1062 };