Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-599-uwe@kleine-koenig.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Uwe Kleine-König and committed by
Takashi Iwai
5ba3ee1f fc6dfd55

+2 -3
+2 -3
sound/aoa/codecs/tas.c
··· 875 875 } 876 876 877 877 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) 880 879 { 881 880 struct device_node *node = client->dev.of_node; 882 881 struct tas *tas; ··· 936 937 .driver = { 937 938 .name = "aoa_codec_tas", 938 939 }, 939 - .probe = tas_i2c_probe, 940 + .probe_new = tas_i2c_probe, 940 941 .remove = tas_i2c_remove, 941 942 .id_table = tas_i2c_id, 942 943 };