diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-07-09 17:16:22 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-07-11 08:13:46 -0400 |
commit | e04008eb38d8b0e3bca926c23cbea309edce164b (patch) | |
tree | a044e81412960464a986e34057237211bfdbf507 /arch/sh | |
parent | 628d7f697c9bcde82620895d25848c301e43ac30 (diff) |
SH: static should be at beginning of declaration
Make sure that the 'static' keywork is at the beginning of declaration
for arch/sh/*
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/mach-migor/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index 969421f64a15..1dc924b2f508 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
@@ -188,7 +188,7 @@ static void ap320_wvga_power_off(void *board_data) | |||
188 | __raw_writew(0, FPGA_LCDREG); | 188 | __raw_writew(0, FPGA_LCDREG); |
189 | } | 189 | } |
190 | 190 | ||
191 | const static struct fb_videomode ap325rxa_lcdc_modes[] = { | 191 | static const struct fb_videomode ap325rxa_lcdc_modes[] = { |
192 | { | 192 | { |
193 | .name = "LB070WV1", | 193 | .name = "LB070WV1", |
194 | .xres = 800, | 194 | .xres = 800, |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 3a32741cc0ac..f80478f36d56 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -233,7 +233,7 @@ static struct platform_device usb1_common_device = { | |||
233 | }; | 233 | }; |
234 | 234 | ||
235 | /* LCDC */ | 235 | /* LCDC */ |
236 | const static struct fb_videomode ecovec_lcd_modes[] = { | 236 | static const struct fb_videomode ecovec_lcd_modes[] = { |
237 | { | 237 | { |
238 | .name = "Panel", | 238 | .name = "Panel", |
239 | .xres = 800, | 239 | .xres = 800, |
@@ -248,7 +248,7 @@ const static struct fb_videomode ecovec_lcd_modes[] = { | |||
248 | }, | 248 | }, |
249 | }; | 249 | }; |
250 | 250 | ||
251 | const static struct fb_videomode ecovec_dvi_modes[] = { | 251 | static const struct fb_videomode ecovec_dvi_modes[] = { |
252 | { | 252 | { |
253 | .name = "DVI", | 253 | .name = "DVI", |
254 | .xres = 1280, | 254 | .xres = 1280, |
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 8b4abbbd1477..f65271a8d075 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c | |||
@@ -127,7 +127,7 @@ static struct platform_device kfr2r09_sh_keysc_device = { | |||
127 | }, | 127 | }, |
128 | }; | 128 | }; |
129 | 129 | ||
130 | const static struct fb_videomode kfr2r09_lcdc_modes[] = { | 130 | static const struct fb_videomode kfr2r09_lcdc_modes[] = { |
131 | { | 131 | { |
132 | .name = "TX07D34VM0AAA", | 132 | .name = "TX07D34VM0AAA", |
133 | .xres = 240, | 133 | .xres = 240, |
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 184fde169132..2d4c9c8c6664 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c | |||
@@ -214,7 +214,7 @@ static struct platform_device migor_nand_flash_device = { | |||
214 | } | 214 | } |
215 | }; | 215 | }; |
216 | 216 | ||
217 | const static struct fb_videomode migor_lcd_modes[] = { | 217 | static const struct fb_videomode migor_lcd_modes[] = { |
218 | { | 218 | { |
219 | #if defined(CONFIG_SH_MIGOR_RTA_WVGA) | 219 | #if defined(CONFIG_SH_MIGOR_RTA_WVGA) |
220 | .name = "LB070WV1", | 220 | .name = "LB070WV1", |
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index 12357671023e..d00756728bd2 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -145,7 +145,7 @@ static struct platform_device nor_flash_device = { | |||
145 | }; | 145 | }; |
146 | 146 | ||
147 | /* LCDC */ | 147 | /* LCDC */ |
148 | const static struct fb_videomode lcdc_720p_modes[] = { | 148 | static const struct fb_videomode lcdc_720p_modes[] = { |
149 | { | 149 | { |
150 | .name = "LB070WV1", | 150 | .name = "LB070WV1", |
151 | .sync = 0, /* hsync and vsync are active low */ | 151 | .sync = 0, /* hsync and vsync are active low */ |
@@ -160,7 +160,7 @@ const static struct fb_videomode lcdc_720p_modes[] = { | |||
160 | }, | 160 | }, |
161 | }; | 161 | }; |
162 | 162 | ||
163 | const static struct fb_videomode lcdc_vga_modes[] = { | 163 | static const struct fb_videomode lcdc_vga_modes[] = { |
164 | { | 164 | { |
165 | .name = "LB070WV1", | 165 | .name = "LB070WV1", |
166 | .sync = 0, /* hsync and vsync are active low */ | 166 | .sync = 0, /* hsync and vsync are active low */ |