OSDN Git Service

ASoC: wm*: use i2c_match_id and simple i2c probe
authorStephen Kitt <steve@sk2.org>
Fri, 25 Mar 2022 16:25:15 +0000 (17:25 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:23:18 +0000 (10:23 +0100)
commit6d8f318b949aaa43a415947ee834890546e4e81b
tree2592ce4483df50378b00637d185f4683154ffa2f
parentb79bd63a66894ca6c75fb9827dc8f3f7fc1233e2
ASoC: wm*: 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>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220325162515.1204107-1-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8904.c
sound/soc/codecs/wm8985.c