Commit a046e7bf authored by Bernard Zhao's avatar Bernard Zhao Committed by Inki Dae

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: default avatarBernard Zhao <bernard@vivo.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 9940d9d9
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
#define OLD_SCLK_MIPI_CLK_NAME "pll_clk" #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", "phyclk_mipidphy0_bitclkdiv8", "phyclk_mipidphy0_rxclkesc0",
"sclk_rgb_vclk_to_dsim0" }; "sclk_rgb_vclk_to_dsim0" };
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
#define MIC_BS_SIZE_2D(x) ((x) & 0x3fff) #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) #define NUM_CLKS ARRAY_SIZE(clk_names)
static DEFINE_MUTEX(mic_mutex); static DEFINE_MUTEX(mic_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment