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: light: max44009: 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/20221118224540.619276-133-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
22cd9320 caa6693e

+2 -3
+2 -3
drivers/iio/light/max44009.c
··· 487 487 return IRQ_NONE; 488 488 } 489 489 490 - static int max44009_probe(struct i2c_client *client, 491 - const struct i2c_device_id *id) 490 + static int max44009_probe(struct i2c_client *client) 492 491 { 493 492 struct max44009_data *data; 494 493 struct iio_dev *indio_dev; ··· 537 538 .driver = { 538 539 .name = MAX44009_DRV_NAME, 539 540 }, 540 - .probe = max44009_probe, 541 + .probe_new = max44009_probe, 541 542 .id_table = max44009_id, 542 543 }; 543 544 module_i2c_driver(max44009_driver);