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: mc3230: 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-13-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
ded7a4f8 2ba423fe

+2 -3
+2 -3
drivers/iio/accel/mc3230.c
··· 106 106 .read_raw = mc3230_read_raw, 107 107 }; 108 108 109 - static int mc3230_probe(struct i2c_client *client, 110 - const struct i2c_device_id *id) 109 + static int mc3230_probe(struct i2c_client *client) 111 110 { 112 111 int ret; 113 112 struct iio_dev *indio_dev; ··· 190 191 .name = "mc3230", 191 192 .pm = pm_sleep_ptr(&mc3230_pm_ops), 192 193 }, 193 - .probe = mc3230_probe, 194 + .probe_new = mc3230_probe, 194 195 .remove = mc3230_remove, 195 196 .id_table = mc3230_i2c_id, 196 197 };