Skip to content

Commit b4d072c

Browse files
perexgbroonie
authored andcommitted
ASoC: nau8325: use simple i2c probe function
The i2c probe functions here don't use the id information provided in their second argument, so the single-parameter i2c probe function ("probe_new") can be used instead. This avoids scanning the identifier tables during probes. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Link: https://patch.msgid.link/20251126091759.2490019-2-perex@perex.cz Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 80339b3 commit b4d072c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sound/soc/codecs/nau8325.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,7 @@ static int nau8325_read_device_properties(struct device *dev,
829829
return 0;
830830
}
831831

832-
static int nau8325_i2c_probe(struct i2c_client *i2c,
833-
const struct i2c_device_id *id)
832+
static int nau8325_i2c_probe(struct i2c_client *i2c)
834833
{
835834
struct device *dev = &i2c->dev;
836835
struct nau8325 *nau8325 = dev_get_platdata(dev);

0 commit comments

Comments
 (0)