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: mxc4005: 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-19-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
a97d9d95 76403ea6

+2 -3
+2 -3
drivers/iio/accel/mxc4005.c
··· 385 385 return 0; 386 386 } 387 387 388 - static int mxc4005_probe(struct i2c_client *client, 389 - const struct i2c_device_id *id) 388 + static int mxc4005_probe(struct i2c_client *client) 390 389 { 391 390 struct mxc4005_data *data; 392 391 struct iio_dev *indio_dev; ··· 488 489 .name = MXC4005_DRV_NAME, 489 490 .acpi_match_table = ACPI_PTR(mxc4005_acpi_match), 490 491 }, 491 - .probe = mxc4005_probe, 492 + .probe_new = mxc4005_probe, 492 493 .id_table = mxc4005_id, 493 494 }; 494 495