Skip to content

Commit 3e39448

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
spi: Switch i2c drivers back to use .probe()
After commit b8a1a4c ("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then 03c835f ("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from struct i2c_driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230525211047.735789-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent dcb2d27 commit 3e39448

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/spi/spi-sc18is602.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static struct i2c_driver sc18is602_driver = {
337337
.name = "sc18is602",
338338
.of_match_table = of_match_ptr(sc18is602_of_match),
339339
},
340-
.probe_new = sc18is602_probe,
340+
.probe = sc18is602_probe,
341341
.id_table = sc18is602_id,
342342
};
343343

drivers/spi/spi-xcomm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static struct i2c_driver spi_xcomm_driver = {
241241
.name = "spi-xcomm",
242242
},
243243
.id_table = spi_xcomm_ids,
244-
.probe_new = spi_xcomm_probe,
244+
.probe = spi_xcomm_probe,
245245
};
246246
module_i2c_driver(spi_xcomm_driver);
247247

0 commit comments

Comments
 (0)