]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: simplify code
authorJean-Francois Moine <moinejf@free.fr>
Wed, 15 Jan 2014 15:51:52 +0000 (16:51 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 12:45:33 +0000 (12:45 +0000)
commitf4dd4cf5ba9551147ea3affa5fa3a3a2407aadde
treea513108682067fca454a69d466d09b4f25b2b812
parentffb4bfec3485a27fd483f4fb6d8fa13676cbfdd7
ASoC: simple-card: simplify code

In the non-DT sequence, the platform data is copied as a whole to the
dynamic card info and the same pointer 'cinfo' is used to copy the
platform information to the card.

Use 'priv' as the pointer to the dynamic card info and copy only the
useful information from the platform data.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/generic/simple-card.c