提交 d675765a 编写于 作者: P Peter Maydell

imx: Use 'const char', not 'char const'

'char const' means the same thing as 'const char', but we
use the former in only a handful of places and we use the
latter over six thousand times. Switch the imx reg_name()
functions to bring them in line with everything else.
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
上级 d486ccaa
......@@ -27,7 +27,7 @@
} \
} while (0)
static char const *imx25_ccm_reg_name(uint32_t reg)
static const char *imx25_ccm_reg_name(uint32_t reg)
{
static char unknown[20];
......
......@@ -29,7 +29,7 @@
} \
} while (0)
static char const *imx31_ccm_reg_name(uint32_t reg)
static const char *imx31_ccm_reg_name(uint32_t reg)
{
static char unknown[20];
......
......@@ -26,7 +26,7 @@
} \
} while (0)
static char const *imx6_ccm_reg_name(uint32_t reg)
static const char *imx6_ccm_reg_name(uint32_t reg)
{
static char unknown[20];
......@@ -99,7 +99,7 @@ static char const *imx6_ccm_reg_name(uint32_t reg)
}
}
static char const *imx6_analog_reg_name(uint32_t reg)
static const char *imx6_analog_reg_name(uint32_t reg)
{
static char unknown[20];
......
......@@ -27,7 +27,7 @@
} \
} while (0)
static char const *imx6_src_reg_name(uint32_t reg)
static const char *imx6_src_reg_name(uint32_t reg)
{
static char unknown[20];
......
......@@ -25,7 +25,7 @@
} \
} while (0)
static char const *imx_spi_reg_name(uint32_t reg)
static const char *imx_spi_reg_name(uint32_t reg)
{
static char unknown[20];
......
......@@ -30,7 +30,7 @@
} \
} while (0)
static char const *imx_epit_reg_name(uint32_t reg)
static const char *imx_epit_reg_name(uint32_t reg)
{
switch (reg) {
case 0:
......
......@@ -29,7 +29,7 @@
} \
} while (0)
static char const *imx_gpt_reg_name(uint32_t reg)
static const char *imx_gpt_reg_name(uint32_t reg)
{
switch (reg) {
case 0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册