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: accel: vl6180: 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>
Link: https://lore.kernel.org/r/20221023132302.911644-24-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
2ca0b16f 9492c00d

+2 -3
+2 -3
drivers/iio/light/vl6180.c
··· 493 493 return vl6180_hold(data, false); 494 494 } 495 495 496 - static int vl6180_probe(struct i2c_client *client, 497 - const struct i2c_device_id *id) 496 + static int vl6180_probe(struct i2c_client *client) 498 497 { 499 498 struct vl6180_data *data; 500 499 struct iio_dev *indio_dev; ··· 538 539 .name = VL6180_DRV_NAME, 539 540 .of_match_table = vl6180_of_match, 540 541 }, 541 - .probe = vl6180_probe, 542 + .probe_new = vl6180_probe, 542 543 .id_table = vl6180_id, 543 544 }; 544 545