drm/sun4i: constify drm_plane_helper_funcs
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 3 Jul 2017 16:05:20 +0000 (21:35 +0530)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 17 Jul 2017 06:21:33 +0000 (08:21 +0200)
commit934d1431929bb5ecde68fb38fe4b2a6f4ab0fba6
treeadfe12dc89d87f829a1d0055e16f86040ce0a58e
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
drm/sun4i: constify drm_plane_helper_funcs

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

File size before:
   text    data     bss     dec     hex filename
    981      40       0    1021     3fd drivers/gpu/drm/sun4i/sun4i_layer.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   1021       0       0    1021     3fd drivers/gpu/drm/sun4i/sun4i_layer.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_layer.c