ASoC: cq93vc: Remove unused state struct
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 19:57:50 +0000 (20:57 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 27 Nov 2014 11:11:30 +0000 (11:11 +0000)
While two of the fields in the cq93vc driver state struct are initialized
none of them are ever acutally read again. So remove the whole struct.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/mfd/davinci_voicecodec.h
sound/soc/codecs/cq93vc.c

index cb01496..8e1cdbe 100644 (file)
@@ -99,12 +99,6 @@ struct davinci_vcif {
        dma_addr_t dma_rx_addr;
 };
 
-struct cq93vc {
-       struct platform_device *pdev;
-       struct snd_soc_codec *codec;
-       u32 sysclk;
-};
-
 struct davinci_vc;
 
 struct davinci_vc {
@@ -122,7 +116,6 @@ struct davinci_vc {
 
        /* Client devices */
        struct davinci_vcif davinci_vcif;
-       struct cq93vc cq93vc;
 };
 
 #endif
index 537327c..036a877 100644 (file)
@@ -62,14 +62,10 @@ static int cq93vc_mute(struct snd_soc_dai *dai, int mute)
 static int cq93vc_set_dai_sysclk(struct snd_soc_dai *codec_dai,
                                 int clk_id, unsigned int freq, int dir)
 {
-       struct snd_soc_codec *codec = codec_dai->codec;
-       struct davinci_vc *davinci_vc = codec->dev->platform_data;
-
        switch (freq) {
        case 22579200:
        case 27000000:
        case 33868800:
-               davinci_vc->cq93vc.sysclk = freq;
                return 0;
        }
 
@@ -135,10 +131,6 @@ static int cq93vc_resume(struct snd_soc_codec *codec)
 
 static int cq93vc_probe(struct snd_soc_codec *codec)
 {
-       struct davinci_vc *davinci_vc = codec->dev->platform_data;
-
-       davinci_vc->cq93vc.codec = codec;
-
        /* Off, with power on */
        cq93vc_set_bias_level(codec, SND_SOC_BIAS_STANDBY);