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: mma7660: 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-15-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
76403ea6 ded7a4f8

+2 -3
+2 -3
drivers/iio/accel/mma7660.c
··· 169 169 .attrs = &mma7660_attribute_group, 170 170 }; 171 171 172 - static int mma7660_probe(struct i2c_client *client, 173 - const struct i2c_device_id *id) 172 + static int mma7660_probe(struct i2c_client *client) 174 173 { 175 174 int ret; 176 175 struct iio_dev *indio_dev; ··· 266 267 .of_match_table = mma7660_of_match, 267 268 .acpi_match_table = mma7660_acpi_id, 268 269 }, 269 - .probe = mma7660_probe, 270 + .probe_new = mma7660_probe, 270 271 .remove = mma7660_remove, 271 272 .id_table = mma7660_i2c_id, 272 273 };