aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/adav803.c
diff options
context:
space:
mode:
authorStephen Kitt <steve@sk2.org>2022-03-25 17:48:28 +0100
committerMark Brown <broonie@kernel.org>2022-04-05 10:23:17 +0100
commitb79bd63a66894ca6c75fb9827dc8f3f7fc1233e2 (patch)
tree7390fe8ea0124366c56af4131f3267424e5d03f7 /sound/soc/codecs/adav803.c
parentASoC: cs35l41: Fix an out-of-bounds access in otp_packed_element_t (diff)
downloadlinux-dev-b79bd63a66894ca6c75fb9827dc8f3f7fc1233e2.tar.xz
linux-dev-b79bd63a66894ca6c75fb9827dc8f3f7fc1233e2.zip
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/adav803.c')
-rw-r--r--sound/soc/codecs/adav803.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/adav803.c b/sound/soc/codecs/adav803.c
index 0f565b851ea5..bf181bbaabed 100644
--- a/sound/soc/codecs/adav803.c
+++ b/sound/soc/codecs/adav803.c
@@ -19,8 +19,7 @@ static const struct i2c_device_id adav803_id[] = {
};
MODULE_DEVICE_TABLE(i2c, adav803_id);
-static int adav803_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int adav803_probe(struct i2c_client *client)
{
return adav80x_bus_probe(&client->dev,
devm_regmap_init_i2c(client, &adav80x_regmap_config));
@@ -30,7 +29,7 @@ static struct i2c_driver adav803_driver = {
.driver = {
.name = "adav803",
},
- .probe = adav803_probe,
+ .probe_new = adav803_probe,
.id_table = adav803_id,
};
module_i2c_driver(adav803_driver);