ASoC: soc.h: add snd_soc_card_is_instantiated() helper
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 31 Jan 2023 01:59:27 +0000 (01:59 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 31 Jan 2023 11:04:53 +0000 (11:04 +0000)
commit2e5f86174e31cc1eda92b308f23f3b29684b339e
tree7f6d0820c600733bde0caba29b857508bf27a5d0
parent944d721ee5defb376410c7054a7db0a0ef5ff584
ASoC: soc.h: add snd_soc_card_is_instantiated() helper

ASoC framework/driver checks whether card was instantiated every
where. Then, it should check card pointer too in such case.
This patch adds snd_soc_card_is_instantiated() for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/875ycnfoqp.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h