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: pulsedlight-lidar-lite-v2: 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-182-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
94c80ea7 5c5c482e

+2 -3
+2 -3
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
··· 253 253 .read_raw = lidar_read_raw, 254 254 }; 255 255 256 - static int lidar_probe(struct i2c_client *client, 257 - const struct i2c_device_id *id) 256 + static int lidar_probe(struct i2c_client *client) 258 257 { 259 258 struct lidar_data *data; 260 259 struct iio_dev *indio_dev; ··· 365 366 .of_match_table = lidar_dt_ids, 366 367 .pm = pm_ptr(&lidar_pm_ops), 367 368 }, 368 - .probe = lidar_probe, 369 + .probe_new = lidar_probe, 369 370 .remove = lidar_remove, 370 371 .id_table = lidar_id, 371 372 };