diff options
| author | Jaroslav Kysela <perex@perex.cz> | 2025-11-26 10:16:34 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-11-26 12:30:21 +0000 |
| commit | b4d072c98e47c562834f2a050ca98a1c709ef4f9 (patch) | |
| tree | a1c07f623ac2c73492af0f58b419485c197f2ff0 | |
| parent | 80339b3823bb76d383c82186b55ac836fed3f586 (diff) | |
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>
| -rw-r--r-- | sound/soc/codecs/nau8325.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/nau8325.c b/sound/soc/codecs/nau8325.c index 2266f320a8f2..5b3115b0a7e5 100644 --- a/sound/soc/codecs/nau8325.c +++ b/sound/soc/codecs/nau8325.c @@ -829,8 +829,7 @@ static int nau8325_read_device_properties(struct device *dev, return 0; } -static int nau8325_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int nau8325_i2c_probe(struct i2c_client *i2c) { struct device *dev = &i2c->dev; struct nau8325 *nau8325 = dev_get_platdata(dev); |
