OSDN Git Service

ASoC: sgtl5000: use simple i2c probe function
authorStephen Kitt <steve@sk2.org>
Tue, 5 Apr 2022 16:40:31 +0000 (18:40 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 6 Apr 2022 22:37:59 +0000 (23:37 +0100)
commit67f51bfecf9e72511419ded0e4148e2b7a7a30b1
treeaef464993bf2303f38e26bed69910445a3c0af47
parent953b1388a58e8fd70c034c7679d7031d41c7d8ec
ASoC: sgtl5000: 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: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20220405164031.2160888-1-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sgtl5000.c