ASoC: Remove unused cache_only from struct snd_soc_codec
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 28 Aug 2014 11:07:11 +0000 (14:07 +0300)
committerMark Brown <broonie@linaro.org>
Thu, 28 Aug 2014 18:05:57 +0000 (19:05 +0100)
There are no real users for cache_only in "struct snd_soc_codec" so remove
it and needless debugfs node.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-core.c

index edbb0d72ab38c2926460457bc1c061f43886b17b..ce09302bfd6d68686b57268b44ddce1f1ece73c4 100644 (file)
@@ -792,7 +792,6 @@ struct snd_soc_codec {
        unsigned int ac97_registered:1; /* Codec has been AC97 registered */
        unsigned int ac97_created:1; /* Codec has been created by SoC */
        unsigned int cache_init:1; /* codec cache has been initialized */
-       u32 cache_only;  /* Suppress writes to hardware */
        u32 cache_sync; /* Cache needs to be synced to hardware */
 
        /* codec IO */
index 419682693886cdcfa63f69a0d33ee1ba7a0952d7..1b422c5c36c8ef8ca6f31d6a040cdd7cf69101f3 100644 (file)
@@ -311,8 +311,6 @@ static void soc_init_codec_debugfs(struct snd_soc_component *component)
 
        debugfs_create_bool("cache_sync", 0444, codec->component.debugfs_root,
                            &codec->cache_sync);
-       debugfs_create_bool("cache_only", 0444, codec->component.debugfs_root,
-                           &codec->cache_only);
 
        codec->debugfs_reg = debugfs_create_file("codec_reg", 0644,
                                                 codec->component.debugfs_root,