OSDN Git Service

ASoC: sun8i-codec: Use snd_soc_dai_get_drvdata
authorSamuel Holland <samuel@sholland.org>
Thu, 1 Oct 2020 02:11:31 +0000 (21:11 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2020 13:16:21 +0000 (14:16 +0100)
commita886990c9525e83146829c7711ce444ff652c98a
tree2cf1df6f3b536c8e67a9e0f7563e11149a87ed52
parent18ebd62c30f0380da11d6c86e20b56c771ac1e18
ASoC: sun8i-codec: Use snd_soc_dai_get_drvdata

Remove a level of indirection by getting the device directly from the
passed-in struct snd_soc_dai, instead of going through its component.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20201001021148.15852-9-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c