summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-06-10 14:21:16 +0300
committerMark Brown <broonie@kernel.org>2026-06-10 14:21:16 +0300
commit4bc343bd77e399528bc841a3bb520773363fddd5 (patch)
treea90bf5f58de06a7f2ca11c34058ec01398ac373d /include
parentaa283db3bb8dba918a28016305ebc2046f3bf2e2 (diff)
parentcd849a5fcac849a2c9d9391a2676bf3d0b4443dd (diff)
downloadlinux-4bc343bd77e399528bc841a3bb520773363fddd5.tar.xz
ASoC: remove .debugfs_prefix from Component
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> says: Basically, we are assuming to use snd_soc_register_component() (X) to register Component. It requests Component driver (A). And, current Component has .debugfs_prefix (B). Now we can set component->debugfs_prefix (B) via component_driver->debugfs_prefix (A) today. But some drivers are still trying to set it via (B). Thus, they need to use snd_soc_component_initialize() (1) / snd_soc_component_add() (2) instead of (X), because they need to access component->debugfs_prefix (B). These functions (= 1, 2) should be capsuled into soc-xxx.c, but can't because of above drivers. This patch-set removes component->debugfs_prefix (B). The functions (= 1, 2) are still not yet be capsuled. This is step1 for it, step2 will be posted after this. Link: https://patch.msgid.link/87ldcxk5wz.wl-kuninori.morimoto.gx@renesas.com
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc-component.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 7e158d27ae8d..11bc9527653f 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -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 {
@@ -250,7 +248,6 @@ struct snd_soc_component {
void *mark_pm;
struct dentry *debugfs_root;
- const char *debugfs_prefix;
};
#define for_each_component_dais(component, dai)\