summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/pmag-ba-fb.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-04 16:00:49 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-09-04 16:00:49 +0200
commit799b88deec3fc4cd20165549a8cfcca94cbef98c (patch)
tree25b847302841d83145b54906ef95ec0b9691208a /drivers/video/fbdev/pmag-ba-fb.c
parentomapfb: constify omap_video_timings structures (diff)
downloadlinux-799b88deec3fc4cd20165549a8cfcca94cbef98c.tar.xz
linux-799b88deec3fc4cd20165549a8cfcca94cbef98c.zip
video: fbdev: annotate fb_fix_screeninfo with const and __initconst
Make these const as they are only used during a copy operation. Some structures are used as a copy operation inside __init functions, so make them const and replace __initdata with __initconst to avoid section conflict error. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Cc: Julia Lawall <julia.lawall@lip6.fr> Cc: Nicolas Ferre <nicolas.ferre@microchip.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/pmag-ba-fb.c')
-rw-r--r--drivers/video/fbdev/pmag-ba-fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/pmag-ba-fb.c b/drivers/video/fbdev/pmag-ba-fb.c
index 1fd02f40708e..8d1a878f8586 100644
--- a/drivers/video/fbdev/pmag-ba-fb.c
+++ b/drivers/video/fbdev/pmag-ba-fb.c
@@ -67,7 +67,7 @@ static struct fb_var_screeninfo pmagbafb_defined = {
.vmode = FB_VMODE_NONINTERLACED,
};
-static struct fb_fix_screeninfo pmagbafb_fix = {
+static const struct fb_fix_screeninfo pmagbafb_fix = {
.id = "PMAG-BA",
.smem_len = (1024 * 1024),
.type = FB_TYPE_PACKED_PIXELS,