Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ba6c9c3 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Remove redundant device name from debugfs directory



Since the core now includes deduplication in the name of CODEC
devices there's no need to add extra for the debugfs directory name.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 13cb61f8
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -234,16 +234,7 @@ static const struct file_operations codec_reg_fops = {

static void soc_init_codec_debugfs(struct snd_soc_codec *codec)
{
	char codec_root[128];

	if (codec->dev)
		snprintf(codec_root, sizeof(codec_root),
			"%s.%s", codec->name, dev_name(codec->dev));
	else
		snprintf(codec_root, sizeof(codec_root),
			"%s", codec->name);

	codec->debugfs_codec_root = debugfs_create_dir(codec_root,
	codec->debugfs_codec_root = debugfs_create_dir(codec->name ,
						       debugfs_root);
	if (!codec->debugfs_codec_root) {
		printk(KERN_WARNING