aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc-dapm.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-30 14:16:37 -0500
committerMark Brown <broonie@kernel.org>2015-02-02 15:02:42 -0500
commitd29697dc3b92cb12a80632a5ade4fa26fd98225e (patch)
tree1e829f0bacff5d5f2130ed13731f91e60f683c6b /include/sound/soc-dapm.h
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
ASoC: Add sysfs entries via static attribute groups
Instead of calling device_create_file() manually, assign the static attribute group entries at the device registration. This simplifies the error handling and avoids the possible races. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r--include/sound/soc-dapm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 89823cfe6f04..e8e0220404d4 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -405,7 +405,7 @@ int snd_soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm,
405 struct snd_soc_dapm_update *update); 405 struct snd_soc_dapm_update *update);
406 406
407/* dapm sys fs - used by the core */ 407/* dapm sys fs - used by the core */
408int snd_soc_dapm_sys_add(struct device *dev); 408extern struct attribute *soc_dapm_dev_attrs[];
409void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, 409void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm,
410 struct dentry *parent); 410 struct dentry *parent);
411 411