Commit c894ec01 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Takashi Iwai

ALSA: Switch i2c drivers back to use .probe()

After commit b8a1a4cd ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f4 ("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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarLuca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://lore.kernel.org/r/20230525203640.677826-1-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f7241589
...@@ -1048,7 +1048,7 @@ static struct i2c_driver onyx_driver = { ...@@ -1048,7 +1048,7 @@ static struct i2c_driver onyx_driver = {
.driver = { .driver = {
.name = "aoa_codec_onyx", .name = "aoa_codec_onyx",
}, },
.probe_new = onyx_i2c_probe, .probe = onyx_i2c_probe,
.remove = onyx_i2c_remove, .remove = onyx_i2c_remove,
.id_table = onyx_i2c_id, .id_table = onyx_i2c_id,
}; };
......
...@@ -936,7 +936,7 @@ static struct i2c_driver tas_driver = { ...@@ -936,7 +936,7 @@ static struct i2c_driver tas_driver = {
.driver = { .driver = {
.name = "aoa_codec_tas", .name = "aoa_codec_tas",
}, },
.probe_new = tas_i2c_probe, .probe = tas_i2c_probe,
.remove = tas_i2c_remove, .remove = tas_i2c_remove,
.id_table = tas_i2c_id, .id_table = tas_i2c_id,
}; };
......
...@@ -58,7 +58,7 @@ static struct i2c_driver cs35l41_i2c_driver = { ...@@ -58,7 +58,7 @@ static struct i2c_driver cs35l41_i2c_driver = {
.pm = &cs35l41_hda_pm_ops, .pm = &cs35l41_hda_pm_ops,
}, },
.id_table = cs35l41_hda_i2c_id, .id_table = cs35l41_hda_i2c_id,
.probe_new = cs35l41_hda_i2c_probe, .probe = cs35l41_hda_i2c_probe,
.remove = cs35l41_hda_i2c_remove, .remove = cs35l41_hda_i2c_remove,
}; };
module_i2c_driver(cs35l41_i2c_driver); module_i2c_driver(cs35l41_i2c_driver);
......
...@@ -90,7 +90,7 @@ static struct i2c_driver keywest_driver = { ...@@ -90,7 +90,7 @@ static struct i2c_driver keywest_driver = {
.driver = { .driver = {
.name = "PMac Keywest Audio", .name = "PMac Keywest Audio",
}, },
.probe_new = keywest_probe, .probe = keywest_probe,
.remove = keywest_remove, .remove = keywest_remove,
.id_table = keywest_i2c_id, .id_table = keywest_i2c_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment