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.

staging: iio: ad5933: Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-568-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
67ab4155 8282ef72

+3 -3
+3 -3
drivers/staging/iio/impedance-analyzer/ad5933.c
··· 674 674 clk_disable_unprepare(st->mclk); 675 675 } 676 676 677 - static int ad5933_probe(struct i2c_client *client, 678 - const struct i2c_device_id *id) 677 + static int ad5933_probe(struct i2c_client *client) 679 678 { 679 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 680 680 int ret; 681 681 struct ad5933_state *st; 682 682 struct iio_dev *indio_dev; ··· 781 781 .name = "ad5933", 782 782 .of_match_table = ad5933_of_match, 783 783 }, 784 - .probe = ad5933_probe, 784 + .probe_new = ad5933_probe, 785 785 .id_table = ad5933_id, 786 786 }; 787 787 module_i2c_driver(ad5933_driver);