drm/panel: st7703: Make jh057n00900_panel_desc static
authorJason Yan <yanaijie@huawei.com>
Sat, 12 Sep 2020 03:38:09 +0000 (11:38 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 17 Oct 2020 06:13:22 +0000 (08:13 +0200)
This eliminates the following sparse warning:

drivers/gpu/drm/panel/panel-sitronix-st7703.c:156:26: warning: symbol
'jh057n00900_panel_desc' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
[Use static const]
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200912033809.142773-1-yanaijie@huawei.com
drivers/gpu/drm/panel/panel-sitronix-st7703.c

index c22e7c4..b30510b 100644 (file)
@@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode = {
        .height_mm   = 130,
 };
 
-struct st7703_panel_desc jh057n00900_panel_desc = {
+static const struct st7703_panel_desc jh057n00900_panel_desc = {
        .mode = &jh057n00900_mode,
        .lanes = 4,
        .mode_flags = MIPI_DSI_MODE_VIDEO |