summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most/aim-sound
diff options
context:
space:
mode:
authorSudip Mukherjee2015-08-18 17:18:25 +0200
committerGreg Kroah-Hartman2015-09-13 03:24:31 +0200
commit809da8a5f19010e877ed66cd1ffac9f8284d7052 (patch)
tree15fd1651ba29ce5cd426c45f6d82b3537954fa48 /drivers/staging/most/aim-sound
parentstaging: most: remove unused functions (diff)
downloadkernel-qcow2-linux-809da8a5f19010e877ed66cd1ffac9f8284d7052.tar.gz
kernel-qcow2-linux-809da8a5f19010e877ed66cd1ffac9f8284d7052.tar.xz
kernel-qcow2-linux-809da8a5f19010e877ed66cd1ffac9f8284d7052.zip
staging: most: make functions static
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>
Diffstat (limited to 'drivers/staging/most/aim-sound')
-rw-r--r--drivers/staging/most/aim-sound/sound.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/most/aim-sound/sound.c b/drivers/staging/most/aim-sound/sound.c
index 860302eebda7..27449d20328a 100644
--- a/drivers/staging/most/aim-sound/sound.c
+++ b/drivers/staging/most/aim-sound/sound.c
@@ -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)