]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ad1*, ada*, ssm*: use i2c_match_id and simple i2c probe
authorStephen Kitt <steve@sk2.org>
Fri, 25 Mar 2022 16:54:52 +0000 (17:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:23:09 +0000 (10:23 +0100)
commitab440a87f62b61386cc54fca5f424dc86aa828fc
treecdae77ade01549dcc90ca2b223cf12f39874814a
parent3e98554c2e30eb09f789bdb0273fb785e834ef2a
ASoC: ad1*, ada*, ssm*: use i2c_match_id and simple i2c probe

As part of the ongoing i2c transition to the simple probe
("probe_new"), this patch uses i2c_match_id to retrieve the
driver_data for the probed device. The id parameter is thus no longer
necessary and the simple probe can be used instead.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220325165452.1212975-1-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ad193x-i2c.c
sound/soc/codecs/adau1761-i2c.c
sound/soc/codecs/adau1781-i2c.c
sound/soc/codecs/adau1977-i2c.c
sound/soc/codecs/ssm2602-i2c.c