]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef9388174f2714b3c664457a44a98b2cd8928f14
tree4ade9e46afa48239b23ccab6dfa4fc66511581fa
parent16b30f81214df3c846cd8e0727d5ca3aab536f70
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