drm/rockchip: Constify struct drm_encoder_helper_funcs
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 13 Jul 2024 20:52:05 +0000 (22:52 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 15 Aug 2024 10:29:19 +0000 (12:29 +0200)
commit7af62003181f8589b3b597ef96b147d4303771c4
treefa9ffde4db15048502ea14361e879396fb17df45
parentf7f4df8851194d2635fb7989582014329dcffa12
drm/rockchip: Constify struct drm_encoder_helper_funcs

'struct drm_encoder_helper_funcs' is not modified in these drivers.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
======
   text    data     bss     dec     hex filename
   7458     552       0    8010    1f4a drivers/gpu/drm/rockchip/analogix_dp-rockchip.o

After:
=====
   text    data     bss     dec     hex filename
   7578     424       0    8002    1f42 drivers/gpu/drm/rockchip/analogix_dp-rockchip.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/128f9941aab3b1367eb7abca4ac26e2e5dd6ad21.1720903899.git.christophe.jaillet@wanadoo.fr
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
drivers/gpu/drm/rockchip/inno_hdmi.c