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

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
9d6f774d 1bee48f4

+2 -3
+2 -3
drivers/iio/proximity/isl29501.c
··· 949 949 return IRQ_HANDLED; 950 950 } 951 951 952 - static int isl29501_probe(struct i2c_client *client, 953 - const struct i2c_device_id *id) 952 + static int isl29501_probe(struct i2c_client *client) 954 953 { 955 954 struct iio_dev *indio_dev; 956 955 struct isl29501_private *isl29501; ··· 1008 1009 .name = "isl29501", 1009 1010 }, 1010 1011 .id_table = isl29501_id, 1011 - .probe = isl29501_probe, 1012 + .probe_new = isl29501_probe, 1012 1013 }; 1013 1014 module_i2c_driver(isl29501_driver); 1014 1015