Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: max9611: 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>
Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221118224540.619276-68-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
d59ecbc4 a69e45a4

+2 -3
+2 -3
drivers/iio/adc/max9611.c
··· 510 510 }; 511 511 512 512 MODULE_DEVICE_TABLE(of, max9611_of_table); 513 - static int max9611_probe(struct i2c_client *client, 514 - const struct i2c_device_id *id) 513 + static int max9611_probe(struct i2c_client *client) 515 514 { 516 515 const char * const shunt_res_prop = "shunt-resistor-micro-ohms"; 517 516 struct max9611_dev *max9611; ··· 556 557 .name = DRIVER_NAME, 557 558 .of_match_table = max9611_of_table, 558 559 }, 559 - .probe = max9611_probe, 560 + .probe_new = max9611_probe, 560 561 }; 561 562 module_i2c_driver(max9611_driver); 562 563