ALSA: Switch i2c drivers back to use .probe()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 25 May 2023 20:36:40 +0000 (22:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Jun 2023 07:22:45 +0000 (09:22 +0200)
After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498b5 ("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>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://lore.kernel.org/r/20230525203640.677826-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/codecs/onyx.c
sound/aoa/codecs/tas.c
sound/pci/hda/cs35l41_hda_i2c.c
sound/ppc/keywest.c

index 4c75381..a8a59d7 100644 (file)
@@ -1048,7 +1048,7 @@ static struct i2c_driver onyx_driver = {
        .driver = {
                .name = "aoa_codec_onyx",
        },
-       .probe_new = onyx_i2c_probe,
+       .probe = onyx_i2c_probe,
        .remove = onyx_i2c_remove,
        .id_table = onyx_i2c_id,
 };
index f906e9a..ab14723 100644 (file)
@@ -936,7 +936,7 @@ static struct i2c_driver tas_driver = {
        .driver = {
                .name = "aoa_codec_tas",
        },
-       .probe_new = tas_i2c_probe,
+       .probe = tas_i2c_probe,
        .remove = tas_i2c_remove,
        .id_table = tas_i2c_id,
 };
index 7826b1a..b44536f 100644 (file)
@@ -58,7 +58,7 @@ static struct i2c_driver cs35l41_i2c_driver = {
                .pm             = &cs35l41_hda_pm_ops,
        },
        .id_table       = cs35l41_hda_i2c_id,
-       .probe_new      = cs35l41_hda_i2c_probe,
+       .probe          = cs35l41_hda_i2c_probe,
        .remove         = cs35l41_hda_i2c_remove,
 };
 module_i2c_driver(cs35l41_i2c_driver);
index 0c4f439..dfc1fc9 100644 (file)
@@ -90,7 +90,7 @@ static struct i2c_driver keywest_driver = {
        .driver = {
                .name = "PMac Keywest Audio",
        },
-       .probe_new = keywest_probe,
+       .probe = keywest_probe,
        .remove = keywest_remove,
        .id_table = keywest_i2c_id,
 };