ASoC: soc-core: Remove unneeded dentry member from snd_soc_codec

There is no need to have the *debugfs_reg dentry member as part of
the snd_soc_codec structure as its only usage is inside
soc_init_codec_debugfs().

Use a local dentry variable instead.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Fabio Estevam
2017-08-07 09:08:52 -03:00
committed by Mark Brown
parent a7e1149b64
commit 353c64dd19
2 changed files with 5 additions and 8 deletions

View File

@@ -903,10 +903,6 @@ struct snd_soc_codec {
/* component */
struct snd_soc_component component;
#ifdef CONFIG_DEBUG_FS
struct dentry *debugfs_reg;
#endif
};
/* codec driver */