From: Julia Lawall Date: Fri, 18 Aug 2017 17:56:40 +0000 (+0200) Subject: video: fbdev: xilinxfb: constify copied structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=228b3811080e5f6a647f33b54d88f68a9b8eabbf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git video: fbdev: xilinxfb: constify copied structure Make const xilinx_fb_default_pdata structure that is only copied into other structure. Signed-off-by: Julia Lawall Cc: Michal Simek Cc: Soren Brinkmann , [b.zolnierkie: split from a bigger patch] Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/xilinxfb.c b/drivers/video/fbdev/xilinxfb.c index 0bda18e4bf9e..9531474acabc 100644 --- a/drivers/video/fbdev/xilinxfb.c +++ b/drivers/video/fbdev/xilinxfb.c @@ -100,7 +100,7 @@ struct xilinxfb_platform_data { /* * Default xilinxfb configuration */ -static struct xilinxfb_platform_data xilinx_fb_default_pdata = { +static const struct xilinxfb_platform_data xilinx_fb_default_pdata = { .xres = 640, .yres = 480, .xvirt = 1024,