]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: audio: fix some sparse static warnings
authorGreg Kroah-Hartman <gregkh@google.com>
Mon, 11 May 2015 21:09:09 +0000 (14:09 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 12 May 2015 17:21:56 +0000 (10:21 -0700)
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 <gregkh@google.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/audio-dai.c
drivers/staging/greybus/audio-pcm.c
drivers/staging/greybus/audio.c

index f2c8ca0b4df6417e8d06a27b8de13e61564156ed..39b72f0d21383fcb84216661fbd44344316960f0 100644 (file)
@@ -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,
index 28b5e11068554e1cd3c526419d5fd4b2e34db634..92436300b3ebffdd1c71c9bd57ea0c912fe67b03 100644 (file)
@@ -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,
index 1ef09035706f058ed64e84577899d8fe01b3738a..232ba94b5b88e6c90b4d0151ac59b43e5afe0159 100644 (file)
@@ -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;