atheros: constify some static structures
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Jun 2014 09:06:18 +0000 (09:06 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Jun 2014 09:06:18 +0000 (09:06 +0000)
Constify some static structures as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 41094

target/linux/atheros/patches-3.10/100-board.patch
target/linux/atheros/patches-3.10/120-spiflash.patch
target/linux/atheros/patches-3.10/130-watchdog.patch

index 07b8145b95e8aa8eaed1172fc78919403ca9f500..d223677f54e4cf501204d00e1bc091f7e1561264 100644 (file)
 +      },
 +};
 +
-+static const char *devtype_strings[] = {
++static const char * const devtype_strings[] = {
 +      [DEV_TYPE_AR5312] = "Atheros AR5312",
 +      [DEV_TYPE_AR2312] = "Atheros AR2312",
 +      [DEV_TYPE_AR2313] = "Atheros AR2313",
index a1b36ee37e7d856f6ba9a298ada0da60cf577d4f..7f8acd095eec74e89b1817049fef57805171d4b9 100644 (file)
@@ -23,7 +23,7 @@
  
 --- /dev/null
 +++ b/drivers/mtd/devices/ar2315.c
-@@ -0,0 +1,517 @@
+@@ -0,0 +1,519 @@
 +
 +/*
 + * MTD driver for the SPI Flash Memory support on Atheros AR2315
 +
 +
 +#if defined CONFIG_MTD_REDBOOT_PARTS || CONFIG_MTD_MYLOADER_PARTS
-+static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "MyLoader", NULL };
++static const char * const part_probe_types[] = {
++      "cmdlinepart", "RedBoot", "MyLoader", NULL
++};
 +#endif
 +
 +
index 2ae6dcc0f0e8455666fe03331c056f5c5064cd22..4b395006b8b1a7a0afe4baadd25bb3fdd322b77b 100644 (file)
 +      return ret;
 +}
 +
-+static struct file_operations ar2315_wdt_fops = {
++static const struct file_operations ar2315_wdt_fops = {
 +      .owner          = THIS_MODULE,
 +      .llseek         = no_llseek,
 +      .write          = ar2315_wdt_write,