]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm: armada: Constify drm_prop_enum_list structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 1 Jul 2017 10:54:42 +0000 (16:24 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Jul 2017 08:07:43 +0000 (10:07 +0200)
drm_prop_enum_lists are not supposed to change at runtime. All functions
working with drm_prop_enum_list provided by <drm/drm_property.h> work
with
const drm_prop_enum_list. So mark the non-const structs as const.

File size before:
   text    data     bss     dec     hex filename
   3594     176       0    3770     eba drivers/gpu/drm/armada/armada_overlay.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   3722      48       0    3770     eba drivers/gpu/drm/armada/armada_overlay.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/dbeb176765bda8eaa9efdaa2dcd14c7bbae39cfa.1498905467.git.arvind.yadav.cs@gmail.com
drivers/gpu/drm/armada/armada_overlay.c

index e9a29df4b4438382cd9d6de5c814738649f1c6fb..677b44f3534b9442c8aa31b131adf0b8dc4f1502 100644 (file)
@@ -388,7 +388,7 @@ static const uint32_t armada_ovl_formats[] = {
        DRM_FORMAT_BGR565,
 };
 
-static struct drm_prop_enum_list armada_drm_colorkey_enum_list[] = {
+static const struct drm_prop_enum_list armada_drm_colorkey_enum_list[] = {
        { CKMODE_DISABLE, "disabled" },
        { CKMODE_Y,       "Y component" },
        { CKMODE_U,       "U component" },