Moving to multi-component model.
Since all codecs are regular kernel devices now (with platform data) is of-simple still required ? If not, this file will be removed.
Signed-off-by: Liam Girdwood lrg@slimlogic.co.uk --- include/sound/soc-of-simple.h | 4 ++-- sound/soc/fsl/soc-of-simple.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/include/sound/soc-of-simple.h b/include/sound/soc-of-simple.h index a064e19..daa161f 100644 --- a/include/sound/soc-of-simple.h +++ b/include/sound/soc-of-simple.h @@ -12,8 +12,8 @@ #include <linux/of.h> #include <sound/soc.h>
-int of_snd_soc_register_codec(struct snd_soc_codec_device *codec_dev, - void *codec_data, struct snd_soc_dai *dai, +int of_snd_soc_register_codec(struct snd_soc_codec *codec, + struct snd_soc_dai *dai, struct device_node *node);
int of_snd_soc_register_platform(struct snd_soc_platform *platform, diff --git a/sound/soc/fsl/soc-of-simple.c b/sound/soc/fsl/soc-of-simple.c index 3bc13fd..3335296 100644 --- a/sound/soc/fsl/soc-of-simple.c +++ b/sound/soc/fsl/soc-of-simple.c @@ -99,8 +99,8 @@ static void of_snd_soc_register_device(struct of_snd_soc_device *of_soc)
}
-int of_snd_soc_register_codec(struct snd_soc_codec_device *codec_dev, - void *codec_data, struct snd_soc_dai *dai, +int of_snd_soc_register_codec(struct snd_soc_codec *codec, + struct snd_soc_dai *dai, struct device_node *node) { struct of_snd_soc_device *of_soc; @@ -116,8 +116,6 @@ int of_snd_soc_register_codec(struct snd_soc_codec_device *codec_dev, }
/* Store the codec data */ - of_soc->device.codec_data = codec_data; - of_soc->device.codec_dev = codec_dev; of_soc->dai_link.name = (char *)node->name; of_soc->dai_link.stream_name = (char *)node->name; of_soc->dai_link.codec_dai = dai;