Commit d6ce4cf3 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Mark Brown

ASoC: Move codec debugfs directories under parent card directory

Make use of sound card debugfs directory and move codec directories under
the parent card debugfs directory.

debugfs/asoc/{codec dir} -> debugfs/asoc/{card->name}/{codec dir}.
Signed-off-by: default avatarJarkko Nikula <jhnikula@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a6052154
...@@ -238,8 +238,10 @@ static const struct file_operations codec_reg_fops = { ...@@ -238,8 +238,10 @@ static const struct file_operations codec_reg_fops = {
static void soc_init_codec_debugfs(struct snd_soc_codec *codec) static void soc_init_codec_debugfs(struct snd_soc_codec *codec)
{ {
codec->debugfs_codec_root = debugfs_create_dir(codec->name , struct dentry *debugfs_card_root = codec->card->debugfs_card_root;
debugfs_root);
codec->debugfs_codec_root = debugfs_create_dir(codec->name,
debugfs_card_root);
if (!codec->debugfs_codec_root) { if (!codec->debugfs_codec_root) {
printk(KERN_WARNING printk(KERN_WARNING
"ASoC: Failed to create codec debugfs directory\n"); "ASoC: Failed to create codec debugfs directory\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment