From: Jingoo Han <jg1.han@samsung.com>
To: "'Andrew Morton'" <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
"'Richard Purdie'" <rpurdie@rpsys.net>,
"'Milo Kim'" <milo.kim@ti.com>,
"'Daniel Jeong'" <gshark.jeong@gmail.com>,
"'Jingoo Han'" <jg1.han@samsung.com>
Subject: [PATCH V2 3/6] backlight: ld9040: Staticize local variable gamma_table
Date: Thu, 05 Sep 2013 13:18:16 +0900 [thread overview]
Message-ID: <001001cea9ee$f203f7e0$d60be7a0$%han@samsung.com> (raw)
In-Reply-To: <000701cea9ee$609bfff0$21d3ffd0$%han@samsung.com>
Fix the following sparse warnings:
drivers/video/backlight/ld9040_gamma.h:172:3: warning: symbol 'gamma_table' was not declared. Should it be static?
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/video/backlight/ld9040_gamma.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/video/backlight/ld9040_gamma.h b/drivers/video/backlight/ld9040_gamma.h
index 038d9c8..c5e586d 100644
--- a/drivers/video/backlight/ld9040_gamma.h
+++ b/drivers/video/backlight/ld9040_gamma.h
@@ -169,7 +169,9 @@ static const unsigned int ld9040_22_50[] = {
struct ld9040_gamma {
unsigned int *gamma_22_table[MAX_GAMMA_LEVEL];
-} gamma_table = {
+};
+
+static struct ld9040_gamma gamma_table = {
.gamma_22_table[0] = (unsigned int *)&ld9040_22_50,
.gamma_22_table[1] = (unsigned int *)&ld9040_22_70,
.gamma_22_table[2] = (unsigned int *)&ld9040_22_80,
--
1.7.10.4
next prev parent reply other threads:[~2013-09-05 4:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 4:14 [PATCH V2 0/6] backlight updates for 3.12-rc1 Jingoo Han
2013-09-05 4:16 ` [PATCH V2 1/6] backlight: lp855x_bl: support new LP8555 device Jingoo Han
2013-09-05 4:17 ` [PATCH V2 2/6] backlight: lm3630: apply chip revision Jingoo Han
2013-09-05 4:18 ` Jingoo Han [this message]
2013-09-05 4:19 ` [PATCH V2 4/6] backlight: lm3639: Don't mix different enum types Jingoo Han
2013-09-05 4:19 ` [PATCH V2 5/6] backlight: lp8788: Staticize 'default_bl_config' Jingoo Han
2013-09-05 4:20 ` [PATCH V2 6/6] backlight: use dev_get_platdata() Jingoo Han
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001001cea9ee$f203f7e0$d60be7a0$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=gshark.jeong@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=milo.kim@ti.com \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome