summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/adau1373.c
diff options
context:
space:
mode:
authorStephen Kitt <steve@sk2.org>2022-03-25 19:48:28 +0300
committerMark Brown <broonie@kernel.org>2022-04-05 12:23:17 +0300
commitb79bd63a66894ca6c75fb9827dc8f3f7fc1233e2 (patch)
tree7390fe8ea0124366c56af4131f3267424e5d03f7 /sound/soc/codecs/adau1373.c
parent9f342904216f378e88008bb0ce1ae200a4b99fe8 (diff)
downloadlinux-b79bd63a66894ca6c75fb9827dc8f3f7fc1233e2.tar.xz
ASoC: ada*, ssm*: 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: Stephen Kitt <steve@sk2.org> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20220325164828.1209201-1-steve@sk2.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/adau1373.c')
-rw-r--r--sound/soc/codecs/adau1373.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c
index 46128aaceae9..a9032b5c8d78 100644
--- a/sound/soc/codecs/adau1373.c
+++ b/sound/soc/codecs/adau1373.c
@@ -1473,8 +1473,7 @@ static const struct snd_soc_component_driver adau1373_component_driver = {
.non_legacy_dai_naming = 1,
};
-static int adau1373_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int adau1373_i2c_probe(struct i2c_client *client)
{
struct adau1373 *adau1373;
int ret;
@@ -1508,7 +1507,7 @@ static struct i2c_driver adau1373_i2c_driver = {
.driver = {
.name = "adau1373",
},
- .probe = adau1373_i2c_probe,
+ .probe_new = adau1373_i2c_probe,
.id_table = adau1373_i2c_id,
};