]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/exynos: make pointer to const data const type
authorBernard Zhao <bernard@vivo.com>
Sun, 26 Apr 2020 09:01:42 +0000 (02:01 -0700)
committerInki Dae <inki.dae@samsung.com>
Mon, 18 May 2020 02:36:00 +0000 (11:36 +0900)
Maybe keep pointer which points to global const string data
in const type is better, make sure not change const data.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c
drivers/gpu/drm/exynos/exynos_drm_mic.c

index 958e2c6a6702c9ee199a7910303cbc111b863de3..eb1486d2dd22702ebe71235ee3149d9c20bad503 100644 (file)
 
 #define OLD_SCLK_MIPI_CLK_NAME "pll_clk"
 
-static char *clk_names[5] = { "bus_clk", "sclk_mipi",
+static const char *const clk_names[5] = { "bus_clk", "sclk_mipi",
        "phyclk_mipidphy0_bitclkdiv8", "phyclk_mipidphy0_rxclkesc0",
        "sclk_rgb_vclk_to_dsim0" };
 
index f41d75923557a23a0e1fcfc103aac0c76abb7277..a86abc173605e5d3840da55b0cafb6cedf903287 100644 (file)
@@ -88,7 +88,7 @@
 
 #define MIC_BS_SIZE_2D(x)      ((x) & 0x3fff)
 
-static char *clk_names[] = { "pclk_mic0", "sclk_rgb_vclk_to_mic0" };
+static const char *const clk_names[] = { "pclk_mic0", "sclk_rgb_vclk_to_mic0" };
 #define NUM_CLKS               ARRAY_SIZE(clk_names)
 static DEFINE_MUTEX(mic_mutex);