From: Sangho Yi <antiroot@gmail.com>
To: broonie@opensource.wolfsonmicro.com, cbow@mail.ru, dwmw2@inradead.org
Cc: linux-kernel@vger.kernel.org,
patches@opensource.wolfsonmicro.com,
Sangho Yi <antiroot@gmail.com>
Subject: [PATCH 2/3] power: wm831x_power.c: fixed const struct declaration warning
Date: Thu, 18 Oct 2012 00:01:15 +0900 [thread overview]
Message-ID: <1350486076-3784-2-git-send-email-antiroot@gmail.com> (raw)
In-Reply-To: <1350486076-3784-1-git-send-email-antiroot@gmail.com>
I fixed the following coding style violation;
WARNING: static const char * array should probably be static const char
* const
Signed-off-by: Sangho Yi <antiroot@gmail.com>
---
drivers/power/wm831x_power.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/wm831x_power.c b/drivers/power/wm831x_power.c
index 833841b..1afca43 100644
--- a/drivers/power/wm831x_power.c
+++ b/drivers/power/wm831x_power.c
@@ -430,7 +430,7 @@ static enum power_supply_property wm831x_bat_props[] = {
POWER_SUPPLY_PROP_CHARGE_TYPE,
};
-static const char *wm831x_bat_irqs[] = {
+static const char * const wm831x_bat_irqs[] = {
"BATT HOT",
"BATT COLD",
"BATT FAIL",
--
1.7.9.5
next prev parent reply other threads:[~2012-10-17 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 15:01 [PATCH 1/3] power: wm831x_power: Fixed indentation errors Sangho Yi
2012-10-17 15:01 ` Sangho Yi [this message]
2012-10-17 15:01 ` [PATCH 3/3] power: wm831x_power.c: Fixed indentation bug and whitespace errors Sangho Yi
2012-10-17 15:39 ` Joe Perches
2012-10-17 18:00 ` [PATCH] wm831x: Add and use a wm831x_irq_byname convenience function Joe Perches
2012-11-26 21:35 ` Grant Likely
2012-11-26 21:40 ` Mark Brown
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=1350486076-3784-2-git-send-email-antiroot@gmail.com \
--to=antiroot@gmail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cbow@mail.ru \
--cc=dwmw2@inradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.wolfsonmicro.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.