ASoC: Move card field form platform/codec to component
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 17 Jul 2014 20:01:07 +0000 (22:01 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 22 Jul 2014 22:15:57 +0000 (23:15 +0100)
commit00200107a296cad3a950049a5ad7134a0d962b8d
tree73ccc523f1a46f0f8b7deab226a1df0cf6d057ed
parent093c4e5c3cc6dd320f6cfec54c5490d1567fb05c
ASoC: Move card field form platform/codec to component

Both the snd_soc_codec and snd_soc_platform struct do have a pointer to the
parent card and both handle this pointer in mostly the same way. This patch
moves the card field to the component level which will allow further code
consolidation between platforms and CODECS.

Since there are only a handful of users of the snd_soc_codec struct's card field
(and none of the snd_soc_platform's) these are update in this patch as well,
which allows it to be removed from the snd_soc_codec struct.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/codecs/ac97.c
sound/soc/codecs/cx20442.c
sound/soc/codecs/uda134x.c
sound/soc/codecs/wm8960.c
sound/soc/codecs/wm_adsp.c
sound/soc/omap/ams-delta.c
sound/soc/soc-core.c
sound/soc/soc-dapm.c
sound/soc/soc-jack.c