fbdev: omap/lcd: Staticize non-exported lcd_panel structs
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 30 Jan 2017 16:39:49 +0000 (17:39 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 30 Jan 2017 16:39:49 +0000 (17:39 +0100)
None of the lcd_panel structs defined by the OMAP LCD drivers are
referenced outside of their compilation unit. Follow best practices and
mark them as static.

Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/omap/lcd_h3.c
drivers/video/fbdev/omap/lcd_htcherald.c
drivers/video/fbdev/omap/lcd_inn1510.c
drivers/video/fbdev/omap/lcd_inn1610.c
drivers/video/fbdev/omap/lcd_osk.c
drivers/video/fbdev/omap/lcd_palmte.c
drivers/video/fbdev/omap/lcd_palmtt.c
drivers/video/fbdev/omap/lcd_palmz71.c

index a38af2faba37385445352406d7d77a69e3e04488..428190679617d93d91ce862eb6181fbd1fcc1b18 100644 (file)
@@ -68,7 +68,7 @@ static unsigned long h3_panel_get_caps(struct lcd_panel *panel)
        return 0;
 }
 
-struct lcd_panel h3_panel = {
+static struct lcd_panel h3_panel = {
        .name           = "h3",
        .config         = OMAP_LCDC_PANEL_TFT,
 
index a2ca5e92b30dd6bd580515b171c01868f37373c3..dd2ce69060b82adab85a6142c03eae7494365cd6 100644 (file)
@@ -56,7 +56,7 @@ static unsigned long htcherald_panel_get_caps(struct lcd_panel *panel)
 }
 
 /* Found on WIZ200 (miknix) and some HERA110 models (darkstar62) */
-struct lcd_panel htcherald_panel_1 = {
+static struct lcd_panel htcherald_panel_1 = {
        .name           = "lcd_herald",
        .config         = OMAP_LCDC_PANEL_TFT |
                          OMAP_LCDC_INV_HSYNC |
index a549337b135370209c0154c7f32a9d5629066bbf..dd1f99af718ab0eb1fc7833d1d3cd2593ae31c54 100644 (file)
@@ -53,7 +53,7 @@ static unsigned long innovator1510_panel_get_caps(struct lcd_panel *panel)
        return 0;
 }
 
-struct lcd_panel innovator1510_panel = {
+static struct lcd_panel innovator1510_panel = {
        .name           = "inn1510",
        .config         = OMAP_LCDC_PANEL_TFT,
 
index 7319563818fc526a3c25cd5dc86634ce4ca9beb3..2f72eca4878d4be7d6a4f45e84ae1c84fbf03751 100644 (file)
@@ -74,7 +74,7 @@ static unsigned long innovator1610_panel_get_caps(struct lcd_panel *panel)
        return 0;
 }
 
-struct lcd_panel innovator1610_panel = {
+static struct lcd_panel innovator1610_panel = {
        .name           = "inn1610",
        .config         = OMAP_LCDC_PANEL_TFT,
 
index 3f4a18bf2eab451f153ec8d3390d35ea7d15b4df..4b01c4e2f3e64c71e8f6a373f31849b7059b4460 100644 (file)
@@ -73,7 +73,7 @@ static unsigned long osk_panel_get_caps(struct lcd_panel *panel)
        return 0;
 }
 
-struct lcd_panel osk_panel = {
+static struct lcd_panel osk_panel = {
        .name           = "osk",
        .config         = OMAP_LCDC_PANEL_TFT,
 
index c0cee37118cd712e63fe722add82d0caa12bb4a8..fef7e45db1fe2dc52ddb20ce11b92bfd81471319 100644 (file)
@@ -49,7 +49,7 @@ static unsigned long palmte_panel_get_caps(struct lcd_panel *panel)
        return 0;
 }
 
-struct lcd_panel palmte_panel = {
+static struct lcd_panel palmte_panel = {
        .name           = "palmte",
        .config         = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
                          OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
index 621952b5688ffbb216253c9eb76e498b540ad2fe..bd063145c2638f06405e1740ff135355ad718aa6 100644 (file)
@@ -56,7 +56,7 @@ static unsigned long palmtt_panel_get_caps(struct lcd_panel *panel)
        return OMAPFB_CAPS_SET_BACKLIGHT;
 }
 
-struct lcd_panel palmtt_panel = {
+static struct lcd_panel palmtt_panel = {
        .name           = "palmtt",
        .config         = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
                        OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
index ccb556d17a8697eda362b25d5bcd2b678231b7f4..bff7425e1bb99c1bd27e8eb6e9cdf67644988e3d 100644 (file)
@@ -51,7 +51,7 @@ static unsigned long palmz71_panel_get_caps(struct lcd_panel *panel)
        return OMAPFB_CAPS_SET_BACKLIGHT;
 }
 
-struct lcd_panel palmz71_panel = {
+static struct lcd_panel palmz71_panel = {
        .name           = "palmz71",
        .config         = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
                          OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |