imx: Use 'const char', not 'char const'
PATCH 1/1 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 Peter Maydell <[email protected]>
---
Just a minor style nit I noticed. The only other uses of 'char const' in the codebase are all in qga/commands-posix.c.
hw/misc/imx25_ccm.c | 2 +- hw/misc/imx31_ccm.c | 2 +- hw/misc/imx6_ccm.c | 4 ++-- hw/misc/imx6_src.c | 2 +- hw/ssi/imx_spi.c | 2 +- hw/timer/imx_epit.c | 2 +- hw/timer/imx_gpt.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-)
hw/misc/imx25_ccm.c +1 -1
@@ -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 ];
hw/misc/imx31_ccm.c +1 -1
@@ -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 ];
hw/misc/imx6_ccm.c +2 -2
@@ -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 ];
hw/misc/imx6_src.c +1 -1
@@ -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 ];
hw/ssi/imx_spi.c +1 -1
@@ -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 ];
hw/timer/imx_epit.c +1 -1
@@ -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 :
hw/timer/imx_gpt.c +1 -1
@@ -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 :
Signature · 1 line
1.9.1