diff mbox

ASoC: Remove unused cache_only from struct snd_soc_codec

Message ID 1409224031-9334-1-git-send-email-jarkko.nikula@linux.intel.com (mailing list archive)
State Accepted
Commit b792346fa8660a22a06f118cebe47709f507914f
Headers show

Commit Message

Jarkko Nikula Aug. 28, 2014, 11:07 a.m. UTC
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>
---
 include/sound/soc.h  | 1 -
 sound/soc/soc-core.c | 2 --
 2 files changed, 3 deletions(-)

Comments

Mark Brown Aug. 28, 2014, 6:06 p.m. UTC | #1
On Thu, Aug 28, 2014 at 02:07:11PM +0300, Jarkko Nikula wrote:
> There are no real users for cache_only in "struct snd_soc_codec" so remove
> it and needless debugfs node.

Applied, thanks.
diff mbox

Patch

diff --git a/include/sound/soc.h b/include/sound/soc.h
index e43fbb6f8f8c..29650de0df7b 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -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 */
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 4974b4f9c952..b1327ef05860 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -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,