summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.10/120-spiflash.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-10 09:06:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:06:06 +0000
commit0bca3f9547a32788f8c5f18f229b3d09e81a7617 (patch)
tree4641708ce14c626b02b44f26466912615be05603 /target/linux/atheros/patches-3.10/120-spiflash.patch
parentdd31da467f6bb066fbd809097e7d5dc5822d14e1 (diff)
downloadmaster-31e0f0ae-0bca3f9547a32788f8c5f18f229b3d09e81a7617.tar.gz
master-31e0f0ae-0bca3f9547a32788f8c5f18f229b3d09e81a7617.tar.bz2
master-31e0f0ae-0bca3f9547a32788f8c5f18f229b3d09e81a7617.zip
atheros: spaces fixes
Add missed spaces and remove odd space as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41091
Diffstat (limited to 'target/linux/atheros/patches-3.10/120-spiflash.patch')
-rw-r--r--target/linux/atheros/patches-3.10/120-spiflash.patch26
1 files changed, 14 insertions, 12 deletions
diff --git a/target/linux/atheros/patches-3.10/120-spiflash.patch b/target/linux/atheros/patches-3.10/120-spiflash.patch
index 4705d01cb7..a1b36ee37e 100644
--- a/target/linux/atheros/patches-3.10/120-spiflash.patch
+++ b/target/linux/atheros/patches-3.10/120-spiflash.patch
@@ -23,7 +23,7 @@
--- /dev/null
+++ b/drivers/mtd/devices/ar2315.c
-@@ -0,0 +1,515 @@
+@@ -0,0 +1,517 @@
+
+/*
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
@@ -177,7 +177,7 @@
+}
+
+static u32
-+spiflash_sendcmd (struct spiflash_priv *priv, int opcode, u32 addr)
++spiflash_sendcmd(struct spiflash_priv *priv, int opcode, u32 addr)
+{
+ const struct opcodes *op;
+ u32 reg, mask;
@@ -224,7 +224,7 @@
+ * and flashconfig_tbl array index for success.
+ */
+static int
-+spiflash_probe_chip (struct spiflash_priv *priv)
++spiflash_probe_chip(struct spiflash_priv *priv)
+{
+ u32 sig;
+ int flash_size;
@@ -273,7 +273,7 @@
+ schedule();
+ remove_wait_queue(&priv->wq, &wait);
+
-+ if(signal_pending(current))
++ if (signal_pending(current))
+ return 0;
+
+ goto retry;
@@ -301,7 +301,7 @@
+
+
+static int
-+spiflash_erase (struct mtd_info *mtd, struct erase_info *instr)
++spiflash_erase(struct mtd_info *mtd, struct erase_info *instr)
+{
+ struct spiflash_priv *priv = to_spiflash(mtd);
+ const struct opcodes *op;
@@ -333,7 +333,8 @@
+}
+
+static int
-+spiflash_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
++spiflash_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
++ u_char *buf)
+{
+ struct spiflash_priv *priv = to_spiflash(mtd);
+ u8 *read_addr;
@@ -357,7 +358,8 @@
+}
+
+static int
-+spiflash_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u8 *buf)
++spiflash_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
++ const u8 *buf)
+{
+ struct spiflash_priv *priv = to_spiflash(mtd);
+ u32 opcode, bytes_left;
@@ -501,7 +503,7 @@
+}
+
+static int
-+spiflash_remove (struct platform_device *pdev)
++spiflash_remove(struct platform_device *pdev)
+{
+ struct spiflash_priv *priv = platform_get_drvdata(pdev);
+ struct mtd_info *mtd = &priv->mtd;
@@ -521,19 +523,19 @@
+};
+
+int __init
-+spiflash_init (void)
++spiflash_init(void)
+{
+ return platform_driver_register(&spiflash_driver);
+}
+
+void __exit
-+spiflash_exit (void)
++spiflash_exit(void)
+{
+ return platform_driver_unregister(&spiflash_driver);
+}
+
-+module_init (spiflash_init);
-+module_exit (spiflash_exit);
++module_init(spiflash_init);
++module_exit(spiflash_exit);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("OpenWrt.org, Atheros Communications Inc");