]> git.baikalelectronics.ru Git - kernel.git/commit
drm: exynos: hdmi: make of_device_ids const.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 19 Jun 2017 09:24:03 +0000 (14:54 +0530)
committerInki Dae <inki.dae@samsung.com>
Thu, 27 Jul 2017 00:24:01 +0000 (09:24 +0900)
commit252b1d3a50b0c9be39396f2f252c7e6c6eea8d44
tree7f8be42f0581abf268fd957492770c00e889ce9b
parent4ab5253cc239aec74dd90348b456f38e3edf207e
drm: exynos: hdmi: 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
  12294    1192       0   13486    34ae drivers/gpu/drm/exynos/exynos_hdmi.o

File size after constify hdmi_match_types.
   text    data     bss     dec     hex filename
  13318     176       0   13494    34b6 drivers/gpu/drm/exynos/exynos_hdmi.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c