From 3961e9ac3a4546a1022988cc93aec0dc29b513de Mon Sep 17 00:00:00 2001 From: Bhumika Goyal Date: Thu, 12 Oct 2017 18:18:23 +0200 Subject: [PATCH] video: fbdev: dnfb: make fb_var_screeninfo static and const Make this structure static as it is not referenced in any other file. Make it const as it is used only during a copy operation. Signed-off-by: Bhumika Goyal Cc: Julia Lawall [b.zolnierkie: split from combined patch] Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/dnfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/dnfb.c b/drivers/video/fbdev/dnfb.c index 7b1492d..0941500 100644 --- a/drivers/video/fbdev/dnfb.c +++ b/drivers/video/fbdev/dnfb.c @@ -115,7 +115,7 @@ static struct fb_ops dn_fb_ops = { .fb_imageblit = cfb_imageblit, }; -struct fb_var_screeninfo dnfb_var = { +static const struct fb_var_screeninfo dnfb_var = { .xres = 1280, .yres = 1024, .xres_virtual = 2048, -- 2.7.4