]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d99110ecdcfbab43f6ac292c7a5ec43e22542f0
tree73ccc523f1a46f0f8b7deab226a1df0cf6d057ed
parent5fccdc71e50b49678e68d317f7edc6de34ce807a
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