]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: soc-component: remove CONFIG_DEBUG_FS for debugfs_prefix
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 2 Jun 2026 02:55:31 +0000 (02:55 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 11:21:10 +0000 (12:21 +0100)
Both (A) and (B) have debugfs_prefix, but (B) is using CONFIG_DEBUG_FS (C)

(A) struct snd_soc_component {
...
const char *debugfs_prefix;
};

(B) struct snd_soc_component_driver {
...
(C) ifdef CONFIG_DEBUG_FS
const char *debugfs_prefix;
endif
};

Remove (C) which makes code cleanup difficult.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87jyshk5wc.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-component.h

index 7e158d27ae8d386834fcb56bd7f7bf7ff349b85c..337b7ef4156c494c6ae9c6535f5c0bb5b59a6890 100644 (file)
@@ -199,9 +199,7 @@ struct snd_soc_component_driver {
        bool use_dai_pcm_id;    /* use DAI link PCM ID as PCM device number */
        int be_pcm_base;        /* base device ID for all BE PCMs */
 
-#ifdef CONFIG_DEBUG_FS
        const char *debugfs_prefix;
-#endif
 };
 
 struct snd_soc_component {