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

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

authored by

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

+2 -3
+2 -3
sound/aoa/codecs/onyx.c
··· 990 990 onyx->codec.soundbus_dev->detach_codec(onyx->codec.soundbus_dev, onyx); 991 991 } 992 992 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) 995 994 { 996 995 struct device_node *node = client->dev.of_node; 997 996 struct onyx *onyx; ··· 1048 1049 .driver = { 1049 1050 .name = "aoa_codec_onyx", 1050 1051 }, 1051 - .probe = onyx_i2c_probe, 1052 + .probe_new = onyx_i2c_probe, 1052 1053 .remove = onyx_i2c_remove, 1053 1054 .id_table = onyx_i2c_id, 1054 1055 };