Skip to content

Commit 58b9d4c

Browse files
Uwe Kleine-Königtiwai
authored andcommitted
ALSA: hda: cs35l41: 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 5ba3ee1 commit 58b9d4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/hda/cs35l41_hda_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include "cs35l41_hda.h"
1414

15-
static int cs35l41_hda_i2c_probe(struct i2c_client *clt, const struct i2c_device_id *id)
15+
static int cs35l41_hda_i2c_probe(struct i2c_client *clt)
1616
{
1717
const char *device_name;
1818

@@ -58,7 +58,7 @@ static struct i2c_driver cs35l41_i2c_driver = {
5858
.pm = &cs35l41_hda_pm_ops,
5959
},
6060
.id_table = cs35l41_hda_i2c_id,
61-
.probe = cs35l41_hda_i2c_probe,
61+
.probe_new = cs35l41_hda_i2c_probe,
6262
.remove = cs35l41_hda_i2c_remove,
6363
};
6464
module_i2c_driver(cs35l41_i2c_driver);

0 commit comments

Comments
 (0)