ASoC: da7218: use i2c_match_id and simple i2c probe
authorStephen Kitt <steve@sk2.org>
Fri, 25 Mar 2022 17:19:04 +0000 (18:19 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:23:13 +0000 (10:23 +0100)
commit5e9058ea2bc6e73aeb54b585af38d043490a8509
tree0ebaef2317b744d27a2c9dd255f769051d33169a
parent89be5dc60d67b377be60b47dd12d1a3ee142aacb
ASoC: da7218: 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.

This patch follows the model set by da7218_of_get_id().

Signed-off-by: Stephen Kitt <steve@sk2.org>
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Link: https://lore.kernel.org/r/20220325171904.1223539-1-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7218.c