From: Andrzej Hajda Date: Mon, 24 Oct 2016 11:08:44 +0000 (+0200) Subject: drm/exynos/hdmi: constify global variables X-Git-Tag: submit/tizen/20161216.052309~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c635c80679bc31b85d5e1d09454df6f687b91a3f;p=platform%2Fkernel%2Flinux-exynos.git drm/exynos/hdmi: constify global variables These variables should not be modified. Change-Id: I9cef5d79465e24d3bc1d825afb94cccc09ff1756 Signed-off-by: Andrzej Hajda Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index a769587f78e7..44edff8573d9 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -639,24 +639,24 @@ static const struct hdmiphy_config hdmiphy_5430_configs[] = { }, }; -static const char *hdmi_clk_gates4[] = { +static const char * const hdmi_clk_gates4[] = { "hdmi", "sclk_hdmi" }; -static const char *hdmi_clk_muxes4[] = { +static const char * const hdmi_clk_muxes4[] = { "sclk_pixel", "sclk_hdmiphy", "mout_hdmi" }; -static const char *hdmi_clk_gates5430[] = { +static const char * const hdmi_clk_gates5430[] = { "hdmi_pclk", "hdmi_i_pclk", "i_tmds_clk", "i_pixel_clk", "i_spdif_clk" }; -static const char *hdmi_clk_muxes5430[] = { +static const char * const hdmi_clk_muxes5430[] = { "oscclk", "tmds_clko", "tmds_clko_user", "oscclk", "pixel_clko", "pixel_clko_user" }; -static struct hdmi_driver_data exynos5430_hdmi_driver_data = { +static const struct hdmi_driver_data exynos5430_hdmi_driver_data = { .type = HDMI_TYPE14, .phy_confs = hdmiphy_5430_configs, .phy_conf_count = ARRAY_SIZE(hdmiphy_5430_configs), @@ -669,7 +669,7 @@ static struct hdmi_driver_data exynos5430_hdmi_driver_data = { .phy_mode_set_done = HDMIPHY5433_MODE_SET_DONE, }; -static struct hdmi_driver_data exynos5420_hdmi_driver_data = { +static const struct hdmi_driver_data exynos5420_hdmi_driver_data = { .type = HDMI_TYPE14, .phy_confs = hdmiphy_5420_configs, .phy_conf_count = ARRAY_SIZE(hdmiphy_5420_configs), @@ -679,7 +679,7 @@ static struct hdmi_driver_data exynos5420_hdmi_driver_data = { .phy_mode_set_done = HDMIPHY_MODE_SET_DONE, }; -static struct hdmi_driver_data exynos4212_hdmi_driver_data = { +static const struct hdmi_driver_data exynos4212_hdmi_driver_data = { .type = HDMI_TYPE14, .phy_confs = hdmiphy_v14_configs, .phy_conf_count = ARRAY_SIZE(hdmiphy_v14_configs), @@ -689,7 +689,7 @@ static struct hdmi_driver_data exynos4212_hdmi_driver_data = { .phy_mode_set_done = HDMIPHY_MODE_SET_DONE, }; -static struct hdmi_driver_data exynos4210_hdmi_driver_data = { +static const struct hdmi_driver_data exynos4210_hdmi_driver_data = { .type = HDMI_TYPE13, .phy_confs = hdmiphy_v13_configs, .phy_conf_count = ARRAY_SIZE(hdmiphy_v13_configs), @@ -699,7 +699,7 @@ static struct hdmi_driver_data exynos4210_hdmi_driver_data = { .phy_mode_set_done = HDMIPHY_MODE_SET_DONE, }; -static struct hdmi_driver_data exynos5_hdmi_driver_data = { +static const struct hdmi_driver_data exynos5_hdmi_driver_data = { .type = HDMI_TYPE14, .phy_confs = hdmiphy_v13_configs, .phy_conf_count = ARRAY_SIZE(hdmiphy_v13_configs),