Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1674539 > unrolled thread

[PATCH][sound-next] ASoC: zx_aud96p22: make aud96p22_dt_ids static

Started byColin King <colin.king@canonical.com>
First post2017-06-26 11:10 +0200
Last post2017-06-26 13:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH][sound-next] ASoC: zx_aud96p22: make aud96p22_dt_ids static Colin King <colin.king@canonical.com> - 2017-06-26 11:10 +0200
    Re: [PATCH][sound-next] ASoC: zx_aud96p22: make aud96p22_dt_ids static Shawn Guo <shawn.guo@linaro.org> - 2017-06-26 13:10 +0200

#1674539 — [PATCH][sound-next] ASoC: zx_aud96p22: make aud96p22_dt_ids static

FromColin King <colin.king@canonical.com>
Date2017-06-26 11:10 +0200
Subject[PATCH][sound-next] ASoC: zx_aud96p22: make aud96p22_dt_ids static
Message-ID<tWybU-qo-5@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

The structure aud96p22_dt_ids does not need to be in global scope,
so make it static.

Cleans up sparse warning:
"warning: symbol 'aud96p22_dt_ids' was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 sound/soc/codecs/zx_aud96p22.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/zx_aud96p22.c b/sound/soc/codecs/zx_aud96p22.c
index 032fb7cf6cbd..bc23ce1a30a1 100644
--- a/sound/soc/codecs/zx_aud96p22.c
+++ b/sound/soc/codecs/zx_aud96p22.c
@@ -382,7 +382,7 @@ static int aud96p22_i2c_remove(struct i2c_client *i2c)
 	return 0;
 }
 
-const struct of_device_id aud96p22_dt_ids[] = {
+static const struct of_device_id aud96p22_dt_ids[] = {
 	{ .compatible = "zte,zx-aud96p22", },
 	{ }
 };
-- 
2.11.0

[toc] | [next] | [standalone]


#1674637

FromShawn Guo <shawn.guo@linaro.org>
Date2017-06-26 13:10 +0200
Message-ID<tWA41-1Bu-13@gated-at.bofh.it>
In reply to#1674539
On Mon, Jun 26, 2017 at 5:00 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The structure aud96p22_dt_ids does not need to be in global scope,
> so make it static.
>
> Cleans up sparse warning:
> "warning: symbol 'aud96p22_dt_ids' was not declared. Should it be static?"
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Acked-by: Shawn Guo <shawn.guo@linaro.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web