* [PATCH] video: fbdev: fsl-diu-fb: constify mfb_template and fsl_diu_match. @ 2017-06-20 6:18 ` Arvind Yadav 2017-07-04 14:05 ` Bartlomiej Zolnierkiewicz 0 siblings, 1 reply; 2+ messages in thread From: Arvind Yadav @ 2017-06-20 6:18 UTC (permalink / raw) To: timur, b.zolnierkie; +Cc: linux-fbdev, linux-kernel 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: Arvind Yadav <arvind.yadav.cs@gmail.com> --- drivers/video/fbdev/fsl-diu-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index ca3d6b3..25abbcf 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -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", -- 1.9.1 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] video: fbdev: fsl-diu-fb: constify mfb_template and fsl_diu_match. 2017-06-20 6:18 ` [PATCH] video: fbdev: fsl-diu-fb: constify mfb_template and fsl_diu_match Arvind Yadav @ 2017-07-04 14:05 ` Bartlomiej Zolnierkiewicz 0 siblings, 0 replies; 2+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2017-07-04 14:05 UTC (permalink / raw) To: Arvind Yadav; +Cc: timur, linux-fbdev, linux-kernel On Tuesday, June 20, 2017 11:48:14 AM Arvind Yadav wrote: > 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: Arvind Yadav <arvind.yadav.cs@gmail.com> Patch queued for 4.13, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-04 14:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20170620061854epcas1p1916f630eb91f3c64792583af6de713f0@epcas1p1.samsung.com>
2017-06-20 6:18 ` [PATCH] video: fbdev: fsl-diu-fb: constify mfb_template and fsl_diu_match Arvind Yadav
2017-07-04 14:05 ` Bartlomiej Zolnierkiewicz
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®