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

staging: iio: ade7854: 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-569-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
9fe1614f 67ab4155

+2 -3
+2 -3
drivers/staging/iio/meter/ade7854-i2c.c
··· 112 112 return ret; 113 113 } 114 114 115 - static int ade7854_i2c_probe(struct i2c_client *client, 116 - const struct i2c_device_id *id) 115 + static int ade7854_i2c_probe(struct i2c_client *client) 117 116 { 118 117 struct ade7854_state *st; 119 118 struct iio_dev *indio_dev; ··· 143 144 .driver = { 144 145 .name = "ade7854", 145 146 }, 146 - .probe = ade7854_i2c_probe, 147 + .probe_new = ade7854_i2c_probe, 147 148 .id_table = ade7854_id, 148 149 }; 149 150 module_i2c_driver(ade7854_i2c_driver);