Patchwork [5/6] rtc-twl: Storage class should be before const qualifier

login
register
mail settings
Submitter Alessandro Zummo
Date Jan. 20, 2010, 11:58 p.m.
Message ID <20100121005840.12baded4@linux.lan.towertech.it>
Download mbox | patch
Permalink /patch/43397/
State New
Headers show

Comments

Alessandro Zummo - Jan. 20, 2010, 11:58 p.m.
From: Tobias Klauser <tklauser@distanz.ch>

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>

patch-name: rtc-Storage-class-should-be-before-const-qualifier.patch
patch-rev1: eea6ad3745b7f6f40dd4aec494fcf3d113008d83
patch-rev2: 98f7995fc38b62a0e182f3232aeddba05e065dee
---
 drivers/rtc/rtc-twl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c
index c6a83a2..ed1b868 100644
--- a/drivers/rtc/rtc-twl.c
+++ b/drivers/rtc/rtc-twl.c
@@ -57,7 +57,7 @@  enum {
 	REG_RTC_COMP_LSB_REG,
 	REG_RTC_COMP_MSB_REG,
 };
-const static u8 twl4030_rtc_reg_map[] = {
+static const u8 twl4030_rtc_reg_map[] = {
 	[REG_SECONDS_REG] = 0x00,
 	[REG_MINUTES_REG] = 0x01,
 	[REG_HOURS_REG] = 0x02,
@@ -80,7 +80,7 @@  const static u8 twl4030_rtc_reg_map[] = {
 	[REG_RTC_COMP_LSB_REG] = 0x10,
 	[REG_RTC_COMP_MSB_REG] = 0x11,
 };
-const static u8 twl6030_rtc_reg_map[] = {
+static const u8 twl6030_rtc_reg_map[] = {
 	[REG_SECONDS_REG] = 0x00,
 	[REG_MINUTES_REG] = 0x01,
 	[REG_HOURS_REG] = 0x02,