mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
spi: Switch i2c drivers back to use .probe()
After commitb8a1a4cd5a
("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then03c835f498
("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>
This commit is contained in:
parent
dcb2d27444
commit
3e39448ad9
@ -337,7 +337,7 @@ static struct i2c_driver sc18is602_driver = {
|
||||
.name = "sc18is602",
|
||||
.of_match_table = of_match_ptr(sc18is602_of_match),
|
||||
},
|
||||
.probe_new = sc18is602_probe,
|
||||
.probe = sc18is602_probe,
|
||||
.id_table = sc18is602_id,
|
||||
};
|
||||
|
||||
|
@ -241,7 +241,7 @@ static struct i2c_driver spi_xcomm_driver = {
|
||||
.name = "spi-xcomm",
|
||||
},
|
||||
.id_table = spi_xcomm_ids,
|
||||
.probe_new = spi_xcomm_probe,
|
||||
.probe = spi_xcomm_probe,
|
||||
};
|
||||
module_i2c_driver(spi_xcomm_driver);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user