ASoC: simple-card: add new simple_priv_to_card() macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 15 Mar 2017 04:44:00 +0000 (04:44 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 16 Mar 2017 14:10:37 +0000 (14:10 +0000)
commit5be509576cf634ad384025f50fc4fcb941d14256
tree39b112f728c099f2eddd53fbf18e9caaa48b4a3a
parent40b68dac75a1d16266d3c89244ccf7b899afac3e
ASoC: simple-card: add new simple_priv_to_card() macro

Current simple card driver is directly calling priv->snd_card
everywhere, but it makes unreadable code.
Let's use simple_priv_to_card() macro for it

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c