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: dmard09: 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-9-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
d61f79d3 72907238

+2 -3
+2 -3
drivers/iio/accel/dmard09.c
··· 88 88 .read_raw = dmard09_read_raw, 89 89 }; 90 90 91 - static int dmard09_probe(struct i2c_client *client, 92 - const struct i2c_device_id *id) 91 + static int dmard09_probe(struct i2c_client *client) 93 92 { 94 93 int ret; 95 94 struct iio_dev *indio_dev; ··· 135 136 .driver = { 136 137 .name = DMARD09_DRV_NAME 137 138 }, 138 - .probe = dmard09_probe, 139 + .probe_new = dmard09_probe, 139 140 .id_table = dmard09_id, 140 141 }; 141 142