diff options
author | Stephen Kitt <steve@sk2.org> | 2022-04-05 18:58:34 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-11 19:18:19 +0100 |
commit | 9ba0daa6efa30b1837560a5ce5f41d31093adb42 (patch) | |
tree | d544f3fa0bf4c10caf6618ba914e3881946274fd /sound/soc/codecs/tlv320aic23-i2c.c | |
parent | 33108917c8a6b597782cff0bd31bea3c7737df3b (diff) | |
download | linux-9ba0daa6efa30b1837560a5ce5f41d31093adb42.tar.bz2 |
ASoC: tlv320*: 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>
Link: https://lore.kernel.org/r/20220405165836.2165310-13-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic23-i2c.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic23-i2c.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/tlv320aic23-i2c.c b/sound/soc/codecs/tlv320aic23-i2c.c index dbb8f969274c..1f97673a1cc0 100644 --- a/sound/soc/codecs/tlv320aic23-i2c.c +++ b/sound/soc/codecs/tlv320aic23-i2c.c @@ -16,8 +16,7 @@ #include "tlv320aic23.h" -static int tlv320aic23_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *i2c_id) +static int tlv320aic23_i2c_probe(struct i2c_client *i2c) { struct regmap *regmap; @@ -48,7 +47,7 @@ static struct i2c_driver tlv320aic23_i2c_driver = { .name = "tlv320aic23-codec", .of_match_table = of_match_ptr(tlv320aic23_of_match), }, - .probe = tlv320aic23_i2c_probe, + .probe_new = tlv320aic23_i2c_probe, .id_table = tlv320aic23_id, }; |