lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1350486076-3784-2-git-send-email-antiroot@gmail.com>
Date:	Thu, 18 Oct 2012 00:01:15 +0900
From:	Sangho Yi <antiroot@...il.com>
To:	broonie@...nsource.wolfsonmicro.com, cbow@...l.ru,
	dwmw2@...adead.org
Cc:	linux-kernel@...r.kernel.org, patches@...nsource.wolfsonmicro.com,
	Sangho Yi <antiroot@...il.com>
Subject: [PATCH 2/3] power: wm831x_power.c: fixed const struct declaration warning

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@...il.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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ