ASoC: tas*: use i2c_match_id and simple i2c probe
authorStephen Kitt <steve@sk2.org>
Fri, 15 Apr 2022 16:06:11 +0000 (18:06 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Apr 2022 12:58:55 +0000 (13:58 +0100)
commit55116b39e5e1c2d0fd1a77e9f46ce8437623e0e8
tree141cefdfe602659df0cae310b4fb616d2321990d
parent3577a8a0ac5b9aaf22ff4fa6a9670cf85351ae50
ASoC: tas*: 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 tables are moved up before the probe function, as
suggested by Wolfram Sang, except where the existing code already had
a declaration for the of_device_id table.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Link: https://lore.kernel.org/r/20220415160613.148882-6-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2562.c
sound/soc/codecs/tas571x.c
sound/soc/codecs/tas5720.c