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: adt7316: 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-567-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
8282ef72 6a911319

+3 -3
+3 -3
drivers/staging/iio/addac/adt7316-i2c.c
··· 93 93 * device probe and remove 94 94 */ 95 95 96 - static int adt7316_i2c_probe(struct i2c_client *client, 97 - const struct i2c_device_id *id) 96 + static int adt7316_i2c_probe(struct i2c_client *client) 98 97 { 98 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 99 99 struct adt7316_bus bus = { 100 100 .client = client, 101 101 .irq = client->irq, ··· 138 138 .of_match_table = adt7316_of_match, 139 139 .pm = ADT7316_PM_OPS, 140 140 }, 141 - .probe = adt7316_i2c_probe, 141 + .probe_new = adt7316_i2c_probe, 142 142 .id_table = adt7316_i2c_id, 143 143 }; 144 144 module_i2c_driver(adt7316_driver);