OSDN Git Service

ASoC: soc-ops: use snd_soc_card_get_kcontrol() at snd_soc_limit_volume()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 2 Oct 2019 05:23:14 +0000 (14:23 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Oct 2019 13:37:20 +0000 (14:37 +0100)
commit0881ab6e74b0be7df3da3abdf7caeb2552f907d2
tree4ade9e46afa48239b23ccab6dfa4fc66511581fa
parentd8145989ff8c2a938be372b728f90e23de8557a2
ASoC: soc-ops: use snd_soc_card_get_kcontrol() at snd_soc_limit_volume()

snd_soc_limit_volume() is finding snd_kcontrol by using original coding,
but we already have snd_soc_card_get_kcontrol().
Let's use existing function.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87y2y3afgd.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops.c