aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/cs4234.c
diff options
context:
space:
mode:
authorStephen Kitt <steve@sk2.org>2022-03-25 18:07:34 +0100
committerMark Brown <broonie@kernel.org>2022-04-05 10:23:19 +0100
commit4a4043456cb82df20e146902cfb3dd84bc393cd3 (patch)
treeb8d252e7bd3cb191bde38348c6d2fc7613d83026 /sound/soc/codecs/cs4234.c
parentASoC: wm*: use i2c_match_id and simple i2c probe (diff)
downloadwireguard-linux-4a4043456cb82df20e146902cfb3dd84bc393cd3.tar.xz
wireguard-linux-4a4043456cb82df20e146902cfb3dd84bc393cd3.zip
ASoC: cs*: 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: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Lucas Tanure <tanureal@opensource.cirrus.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220325170734.1216018-1-steve@sk2.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4234.c')
-rw-r--r--sound/soc/codecs/cs4234.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs4234.c b/sound/soc/codecs/cs4234.c
index 20126cc675b1..b44939166e5d 100644
--- a/sound/soc/codecs/cs4234.c
+++ b/sound/soc/codecs/cs4234.c
@@ -731,7 +731,7 @@ static int cs4234_powerup(struct cs4234 *cs4234)
return 0;
}
-static int cs4234_i2c_probe(struct i2c_client *i2c_client, const struct i2c_device_id *id)
+static int cs4234_i2c_probe(struct i2c_client *i2c_client)
{
struct cs4234 *cs4234;
struct device *dev = &i2c_client->dev;
@@ -908,7 +908,7 @@ static struct i2c_driver cs4234_i2c_driver = {
.pm = &cs4234_pm,
.of_match_table = cs4234_of_match,
},
- .probe = cs4234_i2c_probe,
+ .probe_new = cs4234_i2c_probe,
.remove = cs4234_i2c_remove,
};
module_i2c_driver(cs4234_i2c_driver);