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

ALSA: ppc: keywest: 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-601-uwe@kleine-koenig.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Uwe Kleine-König and committed by
Takashi Iwai
1cf47b04 58b9d4c0

+2 -3
+2 -3
sound/ppc/keywest.c
··· 16 16 static struct pmac_keywest *keywest_ctx; 17 17 static bool keywest_probed; 18 18 19 - static int keywest_probe(struct i2c_client *client, 20 - const struct i2c_device_id *id) 19 + static int keywest_probe(struct i2c_client *client) 21 20 { 22 21 keywest_probed = true; 23 22 /* If instantiated via i2c-powermac, we still need to set the client */ ··· 90 91 .driver = { 91 92 .name = "PMac Keywest Audio", 92 93 }, 93 - .probe = keywest_probe, 94 + .probe_new = keywest_probe, 94 95 .remove = keywest_remove, 95 96 .id_table = keywest_i2c_id, 96 97 };