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: mxc6255: 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-20-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
76e4a118 a97d9d95

+2 -3
+2 -3
drivers/iio/accel/mxc6255.c
··· 113 113 .readable_reg = mxc6255_is_readable_reg, 114 114 }; 115 115 116 - static int mxc6255_probe(struct i2c_client *client, 117 - const struct i2c_device_id *id) 116 + static int mxc6255_probe(struct i2c_client *client) 118 117 { 119 118 struct mxc6255_data *data; 120 119 struct iio_dev *indio_dev; ··· 183 184 .name = MXC6255_DRV_NAME, 184 185 .acpi_match_table = ACPI_PTR(mxc6255_acpi_match), 185 186 }, 186 - .probe = mxc6255_probe, 187 + .probe_new = mxc6255_probe, 187 188 .id_table = mxc6255_id, 188 189 }; 189 190