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

iio: potentiostat: lmp91000: 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-165-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
7d8b3e10 4c1142cc

+2 -3
+2 -3
drivers/iio/potentiostat/lmp91000.c
··· 292 292 .predisable = lmp91000_buffer_predisable, 293 293 }; 294 294 295 - static int lmp91000_probe(struct i2c_client *client, 296 - const struct i2c_device_id *id) 295 + static int lmp91000_probe(struct i2c_client *client) 297 296 { 298 297 struct device *dev = &client->dev; 299 298 struct lmp91000_data *data; ··· 416 417 .name = LMP91000_DRV_NAME, 417 418 .of_match_table = lmp91000_of_match, 418 419 }, 419 - .probe = lmp91000_probe, 420 + .probe_new = lmp91000_probe, 420 421 .remove = lmp91000_remove, 421 422 .id_table = lmp91000_id, 422 423 };