mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 11:16:32 +00:00
atheros: constify some static structures
Constify some static structures as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41094
This commit is contained in:
parent
f363db0094
commit
a6cf23b76c
@ -3086,7 +3086,7 @@
|
|||||||
+ },
|
+ },
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+static const char *devtype_strings[] = {
|
+static const char * const devtype_strings[] = {
|
||||||
+ [DEV_TYPE_AR5312] = "Atheros AR5312",
|
+ [DEV_TYPE_AR5312] = "Atheros AR5312",
|
||||||
+ [DEV_TYPE_AR2312] = "Atheros AR2312",
|
+ [DEV_TYPE_AR2312] = "Atheros AR2312",
|
||||||
+ [DEV_TYPE_AR2313] = "Atheros AR2313",
|
+ [DEV_TYPE_AR2313] = "Atheros AR2313",
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/mtd/devices/ar2315.c
|
+++ 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
|
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
|
||||||
@ -436,7 +436,9 @@
|
|||||||
+
|
+
|
||||||
+
|
+
|
||||||
+#if defined CONFIG_MTD_REDBOOT_PARTS || CONFIG_MTD_MYLOADER_PARTS
|
+#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
|
+#endif
|
||||||
+
|
+
|
||||||
+
|
+
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
+ return ret;
|
+ return ret;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static struct file_operations ar2315_wdt_fops = {
|
+static const struct file_operations ar2315_wdt_fops = {
|
||||||
+ .owner = THIS_MODULE,
|
+ .owner = THIS_MODULE,
|
||||||
+ .llseek = no_llseek,
|
+ .llseek = no_llseek,
|
||||||
+ .write = ar2315_wdt_write,
|
+ .write = ar2315_wdt_write,
|
||||||
|
Loading…
Reference in New Issue
Block a user