staging: most: make functions static
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 18 Aug 2015 15:18:25 +0000 (20:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:31 +0000 (18:24 -0700)
split_arg_list() and audio_set_pcm_format() are being called from the
same file and is not referenced from outside, so make them as static.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-sound/sound.c

index 860302eebda7d1935e557bf608bf427180aab65e..27449d20328af543dd4cce6702c3d655d1da3b57 100644 (file)
@@ -486,7 +486,7 @@ static struct snd_pcm_ops pcm_ops = {
 };
 
 
-int split_arg_list(char *buf, char **card_name, char **pcm_format)
+static int split_arg_list(char *buf, char **card_name, char **pcm_format)
 {
        *card_name = strsep(&buf, ".");
        if (!*card_name)
@@ -497,7 +497,8 @@ int split_arg_list(char *buf, char **card_name, char **pcm_format)
        return 0;
 }
 
-int audio_set_pcm_format(char *pcm_format, struct most_channel_config *cfg)
+static int audio_set_pcm_format(char *pcm_format,
+                               struct most_channel_config *cfg)
 {
        if (!strcmp(pcm_format, "1x8")) {
                if (cfg->subbuffer_size != 1)