atheros: spaces fixes
[openwrt/openwrt.git] / target / linux / atheros / patches-3.10 / 120-spiflash.patch
index 4705d01cb7f80c0a1d4b68b37d47277dd342cc3d..a1b36ee37e7d856f6ba9a298ada0da60cf577d4f 100644 (file)
@@ -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
 +}
 +
 +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;
 + * 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;
 +              schedule();
 +              remove_wait_queue(&priv->wq, &wait);
 +
-+              if(signal_pending(current))
++              if (signal_pending(current))
 +                      return 0;
 +
 +              goto retry;
 +
 +
 +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;
 +}
 +
 +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;
 +}
 +
 +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;
 +}
 +
 +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;
 +};
 +
 +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");