Commit 526c9e97 authored by Arvind Yadav's avatar Arvind Yadav Committed by Bartlomiej Zolnierkiewicz

video: fbdev: fsl-diu-fb: constify mfb_template and fsl_diu_match.

File size before:
   text	   data	    bss	    dec	    hex	filename
   2469	   1552	     24	   4045	    fcd	drivers/video/fbdev/fsl-diu-fb.o

File size after adding 'const':
   text	   data	    bss	    dec	    hex	filename
   3821	    200	     24	   4045	    fcd	drivers/video/fbdev/fsl-diu-fb.o
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Cc: Timur Tabi <timur@tabi.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent a8feae09
......@@ -388,7 +388,7 @@ struct fsl_diu_data {
/* Determine the DMA address of a member of the fsl_diu_data structure */
#define DMA_ADDR(p, f) ((p)->dma_addr + offsetof(struct fsl_diu_data, f))
static struct mfb_info mfb_template[] = {
static const struct mfb_info mfb_template[] = {
{
.index = PLANE0,
.id = "Panel0",
......@@ -1868,7 +1868,7 @@ static int __init fsl_diu_setup(char *options)
}
#endif
static struct of_device_id fsl_diu_match[] = {
static const struct of_device_id fsl_diu_match[] = {
#ifdef CONFIG_PPC_MPC512x
{
.compatible = "fsl,mpc5121-diu",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment