Skip to content

Commit 5ba3ee1

Browse files
Uwe Kleine-Königtiwai
authored andcommitted
ALSA: aoa: tas: 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 fc6dfd5 commit 5ba3ee1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sound/aoa/codecs/tas.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,7 @@ static void tas_exit_codec(struct aoa_codec *codec)
875875
}
876876

877877

878-
static int tas_i2c_probe(struct i2c_client *client,
879-
const struct i2c_device_id *id)
878+
static int tas_i2c_probe(struct i2c_client *client)
880879
{
881880
struct device_node *node = client->dev.of_node;
882881
struct tas *tas;
@@ -937,7 +936,7 @@ static struct i2c_driver tas_driver = {
937936
.driver = {
938937
.name = "aoa_codec_tas",
939938
},
940-
.probe = tas_i2c_probe,
939+
.probe_new = tas_i2c_probe,
941940
.remove = tas_i2c_remove,
942941
.id_table = tas_i2c_id,
943942
};

0 commit comments

Comments
 (0)