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: accel: dmard10: 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/20221023132302.911644-10-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
5019025f d61f79d3

+2 -3
+2 -3
drivers/iio/accel/dmard10.c
··· 175 175 dmard10_shutdown(client); 176 176 } 177 177 178 - static int dmard10_probe(struct i2c_client *client, 179 - const struct i2c_device_id *id) 178 + static int dmard10_probe(struct i2c_client *client) 180 179 { 181 180 int ret; 182 181 struct iio_dev *indio_dev; ··· 241 242 .name = "dmard10", 242 243 .pm = pm_sleep_ptr(&dmard10_pm_ops), 243 244 }, 244 - .probe = dmard10_probe, 245 + .probe_new = dmard10_probe, 245 246 .id_table = dmard10_i2c_id, 246 247 }; 247 248