ARM: s3c24xx: Constify few integer tables
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 10 Dec 2016 13:47:34 +0000 (15:47 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 29 Dec 2016 13:29:11 +0000 (15:29 +0200)
These arrays are not modified so they can be made const.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
arch/arm/mach-s3c24xx/bast-irq.c
arch/arm/mach-s3c24xx/iotiming-s3c2410.c

index 2bb08961e934ca91c704e32b6f0a324516157e17..ad8f4cd7c3279273f1d4eac333859540a7caeffc 100644 (file)
@@ -44,7 +44,7 @@
 /* table of ISA irq nos to the relevant mask... zero means
  * the irq is not implemented
 */
-static unsigned char bast_pc104_irqmasks[] = {
+static const unsigned char bast_pc104_irqmasks[] = {
        0,   /* 0 */
        0,   /* 1 */
        0,   /* 2 */
@@ -63,7 +63,7 @@ static unsigned char bast_pc104_irqmasks[] = {
        0,   /* 15 */
 };
 
-static unsigned char bast_pc104_irqs[] = { 3, 5, 7, 10 };
+static const unsigned char bast_pc104_irqs[] = { 3, 5, 7, 10 };
 
 static void
 bast_pc104_mask(struct irq_data *data)
index 65e5f9cb650fa4572a62b3dd7ece68db0526678a..b7970f1fa3d5f47576be237fbbb612494dba32b6 100644 (file)
@@ -249,7 +249,7 @@ static int s3c2410_calc_bank(struct s3c_cpufreq_config *cfg,
        return 0;
 }
 
-static unsigned int tacc_tab[] = {
+static const unsigned int tacc_tab[] = {
        [0]     = 1,
        [1]     = 2,
        [2]     = 3,