Skip to content

Commit fc6dfd5

Browse files
Uwe Kleine-Königtiwai
authored andcommitted
ALSA: aoa: onyx: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent aba51cd commit fc6dfd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sound/aoa/codecs/onyx.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,7 @@ static void onyx_exit_codec(struct aoa_codec *codec)
990990
onyx->codec.soundbus_dev->detach_codec(onyx->codec.soundbus_dev, onyx);
991991
}
992992

993-
static int onyx_i2c_probe(struct i2c_client *client,
994-
const struct i2c_device_id *id)
993+
static int onyx_i2c_probe(struct i2c_client *client)
995994
{
996995
struct device_node *node = client->dev.of_node;
997996
struct onyx *onyx;
@@ -1049,7 +1048,7 @@ static struct i2c_driver onyx_driver = {
10491048
.driver = {
10501049
.name = "aoa_codec_onyx",
10511050
},
1052-
.probe = onyx_i2c_probe,
1051+
.probe_new = onyx_i2c_probe,
10531052
.remove = onyx_i2c_remove,
10541053
.id_table = onyx_i2c_id,
10551054
};

0 commit comments

Comments
 (0)