aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-11-20 11:50:17 -0500
committerJaroslav Kysela <perex@suse.cz>2007-02-09 03:01:40 -0500
commit0b51ba07e2e2866bfea40c5551a926dbefae64da (patch)
tree7d843015e7d64fb6340b14f6c6d6f01b593b51dc /sound
parent5cd575290b4481b3a6ea307afed760df60d01cbc (diff)
[ALSA] make sound/core/control.c:snd_ctl_new() static
Now that everyone uses snd_ctl_new1() and noone is using snd_ctl_new() anymore, we can make it static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r--sound/core/control.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/core/control.c b/sound/core/control.c
index 67f09b8f85e4..42bcf2794b28 100644
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -183,7 +183,8 @@ EXPORT_SYMBOL(snd_ctl_notify);
183 * 183 *
184 * Returns the pointer of the new instance, or NULL on failure. 184 * Returns the pointer of the new instance, or NULL on failure.
185 */ 185 */
186struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol *control, unsigned int access) 186static struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol *control,
187 unsigned int access)
187{ 188{
188 struct snd_kcontrol *kctl; 189 struct snd_kcontrol *kctl;
189 unsigned int idx; 190 unsigned int idx;
@@ -201,8 +202,6 @@ struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol *control, unsigned int acce
201 return kctl; 202 return kctl;
202} 203}
203 204
204EXPORT_SYMBOL(snd_ctl_new);
205
206/** 205/**
207 * snd_ctl_new1 - create a control instance from the template 206 * snd_ctl_new1 - create a control instance from the template
208 * @ncontrol: the initialization record 207 * @ncontrol: the initialization record