Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85909716 authored by Arvind Yadav's avatar Arvind Yadav Committed by Daniel Vetter
Browse files

drm: armada: make of_device_ids const.



of_device_ids are not supposed to change at runtime. All functions
working with of_device_ids provided by <linux/of.h> work with const
of_device_ids. So mark the non-const structs as const.

File size before:
   text	   data	    bss	    dec	    hex	filename
   8836	    744	      0	   9580	   256c	drivers/gpu/drm/armada/armada_crtc.o

File size after constify armada_lcd_of_match:
   text	   data	    bss	    dec	    hex	filename
   9220	    328	      0	   9548	   254c	drivers/gpu/drm/armada/armada_crtc.o

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/ff9a9a908cf347775ab62cfadfde986de72dcf13.1497935382.git.arvind.yadav.cs@gmail.com
parent d0a29878
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1364,7 +1364,7 @@ static int armada_lcd_remove(struct platform_device *pdev)
	return 0;
}

static struct of_device_id armada_lcd_of_match[] = {
static const struct of_device_id armada_lcd_of_match[] = {
	{
		.compatible	= "marvell,dove-lcd",
		.data		= &armada510_ops,