]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tpa6130: use i2c_match_id and simple i2c probe
authorStephen Kitt <steve@sk2.org>
Sun, 1 May 2022 17:10:09 +0000 (19:10 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 3 May 2022 12:45:55 +0000 (13:45 +0100)
commit0f30ad22d3c046fc0674d788142424fd0d221c54
treedae6e0821601ff9fddb0519f2f70c98c018ef6b4
parent0746535f3214991e33c58a9b039ceb8a39b26943
ASoC: tpa6130: 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.

The i2c id table is moved up before the probe function, as suggested
by Wolfram Sang.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Link: https://lore.kernel.org/r/20220501171009.45060-1-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tpa6130a2.c