On Sun, 23 Oct 2022 15:22:46 +0200 Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> wrote: > 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@xxxxxxxxxxxxxx> Applied > --- > drivers/iio/accel/dmard06.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/accel/dmard06.c b/drivers/iio/accel/dmard06.c > index 4b69c8530f5e..7390509aaac0 100644 > --- a/drivers/iio/accel/dmard06.c > +++ b/drivers/iio/accel/dmard06.c > @@ -125,8 +125,7 @@ static const struct iio_info dmard06_info = { > .read_raw = dmard06_read_raw, > }; > > -static int dmard06_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int dmard06_probe(struct i2c_client *client) > { > int ret; > struct iio_dev *indio_dev; > @@ -218,7 +217,7 @@ static const struct of_device_id dmard06_of_match[] = { > MODULE_DEVICE_TABLE(of, dmard06_of_match); > > static struct i2c_driver dmard06_driver = { > - .probe = dmard06_probe, > + .probe_new = dmard06_probe, > .id_table = dmard06_id, > .driver = { > .name = DMARD06_DRV_NAME,