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)
commite5cd0623d7879eb98059223b9eb233a686d58b40
treecdae77ade01549dcc90ca2b223cf12f39874814a
parent900dedd7e47cc3f8d93dfa0ae6ac6cf49eda0c97
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