diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-19 05:24:03 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2017-07-26 20:24:01 -0400 |
commit | e3cc51ea0b8ae056cd18adc62c03573b24ed46cd (patch) | |
tree | 7f8be42f0581abf268fd957492770c00e889ce9b | |
parent | 5e6cc1c588fd827dd9e7359a4fe20b25743fe6b9 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 06bfbe400cf1..e5b9ae0aae6e 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -1676,7 +1676,7 @@ static int hdmi_resources_init(struct hdmi_context *hdata) | |||
1676 | return hdmi_bridge_init(hdata); | 1676 | return hdmi_bridge_init(hdata); |
1677 | } | 1677 | } |
1678 | 1678 | ||
1679 | static struct of_device_id hdmi_match_types[] = { | 1679 | static const struct of_device_id hdmi_match_types[] = { |
1680 | { | 1680 | { |
1681 | .compatible = "samsung,exynos4210-hdmi", | 1681 | .compatible = "samsung,exynos4210-hdmi", |
1682 | .data = &exynos4210_hdmi_driver_data, | 1682 | .data = &exynos4210_hdmi_driver_data, |