]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d760668e9c89d288170ec2c8d3f371ab6f1b6d1
tree0ebaef2317b744d27a2c9dd255f769051d33169a
parent28fc65f4d0919d55470ffbd7dc22732d27e90c7a
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