Skip to content

Commit a046e7b

Browse files
Bernard Zhaodaeinki
authored andcommitted
drm/exynos: make pointer to const data const type
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 <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 9940d9d commit a046e7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/exynos/exynos_drm_dsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212

213213
#define OLD_SCLK_MIPI_CLK_NAME "pll_clk"
214214

215-
static char *clk_names[5] = { "bus_clk", "sclk_mipi",
215+
static const char *const clk_names[5] = { "bus_clk", "sclk_mipi",
216216
"phyclk_mipidphy0_bitclkdiv8", "phyclk_mipidphy0_rxclkesc0",
217217
"sclk_rgb_vclk_to_dsim0" };
218218

drivers/gpu/drm/exynos/exynos_drm_mic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
#define MIC_BS_SIZE_2D(x) ((x) & 0x3fff)
9090

91-
static char *clk_names[] = { "pclk_mic0", "sclk_rgb_vclk_to_mic0" };
91+
static const char *const clk_names[] = { "pclk_mic0", "sclk_rgb_vclk_to_mic0" };
9292
#define NUM_CLKS ARRAY_SIZE(clk_names)
9393
static DEFINE_MUTEX(mic_mutex);
9494

0 commit comments

Comments
 (0)