Commit 536628d0 authored by Jesper Juhl's avatar Jesper Juhl Committed by Paul Mundt

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 1522043b
...@@ -188,7 +188,7 @@ static void ap320_wvga_power_off(void *board_data) ...@@ -188,7 +188,7 @@ static void ap320_wvga_power_off(void *board_data)
__raw_writew(0, FPGA_LCDREG); __raw_writew(0, FPGA_LCDREG);
} }
const static struct fb_videomode ap325rxa_lcdc_modes[] = { static const struct fb_videomode ap325rxa_lcdc_modes[] = {
{ {
.name = "LB070WV1", .name = "LB070WV1",
.xres = 800, .xres = 800,
......
...@@ -280,7 +280,7 @@ static struct platform_device usbhs_device = { ...@@ -280,7 +280,7 @@ static struct platform_device usbhs_device = {
}; };
/* LCDC */ /* LCDC */
const static struct fb_videomode ecovec_lcd_modes[] = { static const struct fb_videomode ecovec_lcd_modes[] = {
{ {
.name = "Panel", .name = "Panel",
.xres = 800, .xres = 800,
...@@ -295,7 +295,7 @@ const static struct fb_videomode ecovec_lcd_modes[] = { ...@@ -295,7 +295,7 @@ const static struct fb_videomode ecovec_lcd_modes[] = {
}, },
}; };
const static struct fb_videomode ecovec_dvi_modes[] = { static const struct fb_videomode ecovec_dvi_modes[] = {
{ {
.name = "DVI", .name = "DVI",
.xres = 1280, .xres = 1280,
......
...@@ -127,7 +127,7 @@ static struct platform_device kfr2r09_sh_keysc_device = { ...@@ -127,7 +127,7 @@ static struct platform_device kfr2r09_sh_keysc_device = {
}, },
}; };
const static struct fb_videomode kfr2r09_lcdc_modes[] = { static const struct fb_videomode kfr2r09_lcdc_modes[] = {
{ {
.name = "TX07D34VM0AAA", .name = "TX07D34VM0AAA",
.xres = 240, .xres = 240,
......
...@@ -214,7 +214,7 @@ static struct platform_device migor_nand_flash_device = { ...@@ -214,7 +214,7 @@ static struct platform_device migor_nand_flash_device = {
} }
}; };
const static struct fb_videomode migor_lcd_modes[] = { static const struct fb_videomode migor_lcd_modes[] = {
{ {
#if defined(CONFIG_SH_MIGOR_RTA_WVGA) #if defined(CONFIG_SH_MIGOR_RTA_WVGA)
.name = "LB070WV1", .name = "LB070WV1",
......
...@@ -145,7 +145,7 @@ static struct platform_device nor_flash_device = { ...@@ -145,7 +145,7 @@ static struct platform_device nor_flash_device = {
}; };
/* LCDC */ /* LCDC */
const static struct fb_videomode lcdc_720p_modes[] = { static const struct fb_videomode lcdc_720p_modes[] = {
{ {
.name = "LB070WV1", .name = "LB070WV1",
.sync = 0, /* hsync and vsync are active low */ .sync = 0, /* hsync and vsync are active low */
...@@ -160,7 +160,7 @@ const static struct fb_videomode lcdc_720p_modes[] = { ...@@ -160,7 +160,7 @@ const static struct fb_videomode lcdc_720p_modes[] = {
}, },
}; };
const static struct fb_videomode lcdc_vga_modes[] = { static const struct fb_videomode lcdc_vga_modes[] = {
{ {
.name = "LB070WV1", .name = "LB070WV1",
.sync = 0, /* hsync and vsync are active low */ .sync = 0, /* hsync and vsync are active low */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment