]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
imx: Use 'const char', not 'char const'
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Sep 2016 17:13:09 +0000 (18:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Sep 2016 17:13:09 +0000 (18:13 +0100)
'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 <peter.maydell@linaro.org>
hw/misc/imx25_ccm.c
hw/misc/imx31_ccm.c
hw/misc/imx6_ccm.c
hw/misc/imx6_src.c
hw/ssi/imx_spi.c
hw/timer/imx_epit.c
hw/timer/imx_gpt.c

index 5cd8c0a9a75ca5817e7c0f4b085b999f9c361fc4..19e948a52d5cbfc1308d7be3971c06d6e4da5a08 100644 (file)
@@ -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];
 
index 1c03e52c40d529a6cbee7a4d6b41f6f12f095363..b890c383be177646af50983bb860d4edcab0a69b 100644 (file)
@@ -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];
 
index 17e15d4c92eba70ce581d9a4681909d2ad3454e1..1b421013a38ed7c2b6d44841e6c319af0c8acfc6 100644 (file)
@@ -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];
 
index 8bb68295752f5f3a7f105fc256d61ce1ae29d52c..55b817b8d70a09a695e610b149732be0f352fb5d 100644 (file)
@@ -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];
 
index 4226199811278ae05c41e0e2c72375fe75ef5b2c..e4e395fa679e2daaf15b5d02d227d25c4fc4ca27 100644 (file)
@@ -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];
 
index f34d7f7c7775e9a938c725ce6add723cf391b0f3..8677b753b1f7c75bda86c31992ade2e929166207 100644 (file)
@@ -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:
index f034d650362869bf98397131fac8dfff205c6cd4..010ccbf207c7b75b869c14cbf93d816280dd505b 100644 (file)
@@ -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: