浏览代码

fbdev: sh_mobile_lcdc: Constify sh_mobile_lcdc_fix structure

The structure is only read, make it const.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Laurent Pinchart 14 年之前
父节点
当前提交
3281e54c80
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/video/sh_mobile_lcdcfb.c

+ 1 - 1
drivers/video/sh_mobile_lcdcfb.c

@@ -1003,7 +1003,7 @@ static int sh_mobile_lcdc_setcolreg(u_int regno,
 	return 0;
 	return 0;
 }
 }
 
 
-static struct fb_fix_screeninfo sh_mobile_lcdc_fix  = {
+static const struct fb_fix_screeninfo sh_mobile_lcdc_fix  = {
 	.id =		"SH Mobile LCDC",
 	.id =		"SH Mobile LCDC",
 	.type =		FB_TYPE_PACKED_PIXELS,
 	.type =		FB_TYPE_PACKED_PIXELS,
 	.visual =	FB_VISUAL_TRUECOLOR,
 	.visual =	FB_VISUAL_TRUECOLOR,