drm/panel: st7703: Make jh057n00900_panel_desc static
PATCH 1/1 drm/panel: st7703: Make jh057n00900_panel_desc static
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?
--- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-sitronix-st7703.c +1 -1
@@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode = { .height_mm = 130, }; -struct st7703_panel_desc jh057n00900_panel_desc = { +static struct st7703_panel_desc jh057n00900_panel_desc = { .mode = &jh057n00900_mode, .lanes =4 , .mode_flags = MIPI_DSI_MODE_VIDEO |
Signature · 6 lines
2.25.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi,
Quoted 16 lines · Jason Yan
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 <[email protected]>Signed-off-by Jason Yan <[email protected]>--- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/panel/panel-sitronix-st7703.c +0
-0
drivers/gpu/drm/panel/panel-sitronix-st7703.c static const struct drm_display_mode jh057n00900_mode = { · line 156
Quoted 5 lines
drivers/gpu/drm/panel/panel-sitronix-st7703.c +1
-1@@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode = { .height_mm = 130, }; -struct st7703_panel_desc jh057n00900_panel_desc = { +static struct st7703_panel_desc jh057n00900_panel_desc = {
Can we even make it static const? With that
Cheers,
-- Guido
Quoted 6 lines
drivers/gpu/drm/panel/panel-sitronix-st7703.c +0
-0.mode = &jh057n00900_mode, .lanes = 4, .mode_flags = MIPI_DSI_MODE_VIDEO |Signature · 1 line
2.25.4
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedHi Jason,
Quoted 7 lines · Jason Yan
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 <[email protected]>Signed-off-by Jason Yan <[email protected]>
Thanks, applied to drm-misc-next with Guidos suggestions. The patch will appear in -next in a few weeks.
Sam
Quoted 24 lines
--- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/panel/panel-sitronix-st7703.c +1
-1@@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode = { .height_mm = 130, }; -struct st7703_panel_desc jh057n00900_panel_desc = { +static struct st7703_panel_desc jh057n00900_panel_desc = { .mode = &jh057n00900_mode, .lanes =4 , .mode_flags = MIPI_DSI_MODE_VIDEO |Signature · 6 lines
2.25.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel