From 13956900b069c98a7c97e32d2f18afa11dcf725c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 11 May 2015 14:09:09 -0700 Subject: [PATCH] greybus: audio: fix some sparse static warnings This makes some functions and structures static, as warned by sparse, as they don't need to be global. Signed-off-by: Greg Kroah-Hartman Reviewed-by: Alex Elder --- drivers/staging/greybus/audio-dai.c | 2 +- drivers/staging/greybus/audio-pcm.c | 2 +- drivers/staging/greybus/audio.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/audio-dai.c b/drivers/staging/greybus/audio-dai.c index f2c8ca0..39b72f0 100644 --- a/drivers/staging/greybus/audio-dai.c +++ b/drivers/staging/greybus/audio-dai.c @@ -59,7 +59,7 @@ static const struct snd_soc_dai_ops gb_dai_ops = { .set_fmt = gb_dai_set_fmt, }; -struct snd_soc_dai_driver gb_cpu_dai = { +static struct snd_soc_dai_driver gb_cpu_dai = { .name = "gb-cpu-dai", .playback = { .rates = GB_RATES, diff --git a/drivers/staging/greybus/audio-pcm.c b/drivers/staging/greybus/audio-pcm.c index 28b5e11..9243630 100644 --- a/drivers/staging/greybus/audio-pcm.c +++ b/drivers/staging/greybus/audio-pcm.c @@ -235,7 +235,7 @@ static int gb_pcm_new(struct snd_soc_pcm_runtime *rtd) PREALLOC_BUFFER, PREALLOC_BUFFER_MAX); } -struct snd_soc_platform_driver gb_soc_platform = { +static struct snd_soc_platform_driver gb_soc_platform = { .ops = &gb_pcm_ops, .pcm_new = gb_pcm_new, .pcm_free = gb_pcm_free, diff --git a/drivers/staging/greybus/audio.c b/drivers/staging/greybus/audio.c index 1ef0903..232ba94 100644 --- a/drivers/staging/greybus/audio.c +++ b/drivers/staging/greybus/audio.c @@ -93,7 +93,7 @@ struct gb_card_info_object { }; -struct asoc_simple_card_info *setup_card_info(int device_count) +static struct asoc_simple_card_info *setup_card_info(int device_count) { struct gb_card_info_object *obj; @@ -125,7 +125,7 @@ struct asoc_simple_card_info *setup_card_info(int device_count) return &obj->card_info; } -void free_card_info(struct asoc_simple_card_info *ci) +static void free_card_info(struct asoc_simple_card_info *ci) { struct gb_card_info_object *obj; -- 2.7.4