Remove white space at end.
authorWilliam Juul <william.juul@datarespons.no>
Thu, 8 Nov 2007 09:39:53 +0000 (10:39 +0100)
committerScott Wood <scottwood@freescale.com>
Tue, 12 Aug 2008 16:31:16 +0000 (11:31 -0500)
Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
board/bf537-stamp/nand.c
board/dave/PPChameleonEVB/nand.c
board/nc650/nand.c
board/netstar/nand.c
board/prodrive/alpr/nand.c
board/sc3/sc3nand.c
common/cmd_nand.c
cpu/arm926ejs/davinci/nand.c
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_util.c
include/linux/mtd/nand.h

index bdf1d6e..d90bdd0 100644 (file)
@@ -50,7 +50,7 @@ static void bfin_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
                if( ctrl & NAND_ALE )
                        IO_ADDR_W = CFG_NAND_BASE + BFIN_NAND_ALE;
                else
-                       IO_ADDR_W = CFG_NAND_BASE;                      
+                       IO_ADDR_W = CFG_NAND_BASE;
                this->IO_ADDR_W = (void __iomem *) IO_ADDR_W;
        }
        this->IO_ADDR_R = this->IO_ADDR_W;
@@ -59,7 +59,7 @@ static void bfin_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
        SSYNC();
 
        if (cmd != NAND_CMD_NONE)
-               writeb(cmd, this->IO_ADDR_W);   
+               writeb(cmd, this->IO_ADDR_W);
 }
 
 int bfin_device_ready(struct mtd_info *mtd)
index 4bc4257..ea6400c 100644 (file)
@@ -52,7 +52,7 @@ static void ppchameleonevb_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int
        }
 
     if (cmd != NAND_CMD_NONE)
-               writeb(cmd, this->IO_ADDR_W);   
+               writeb(cmd, this->IO_ADDR_W);
 }
 
 
index faec605..f59f5e2 100644 (file)
@@ -48,7 +48,7 @@ static void nc650_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
        }
 
     if (cmd != NAND_CMD_NONE)
-               writeb(cmd, this->IO_ADDR_W);   
+               writeb(cmd, this->IO_ADDR_W);
 }
 #elif defined(CONFIG_IDS852_REV2)
 /*
index 302d78e..961c921 100644 (file)
@@ -46,7 +46,7 @@ static void netstar_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int c
                        IO_ADDR_W |= MASK_ALE;
        }
        this->IO_ADDR_W = (void __iomem *) IO_ADDR_W;
-       
+
     if (cmd != NAND_CMD_NONE)
                writeb(cmd, this->IO_ADDR_W);
 }
index 3224d3d..e1495fe 100644 (file)
@@ -57,7 +57,7 @@ static struct alpr_ndfc_regs *alpr_ndfc = NULL;
  * There are 2 NAND devices on the board, a Hynix HY27US08561A (1 GByte).
  */
 static void alpr_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
-{      
+{
     struct nand_chip *this = mtd->priv;
 
        if (ctrl & NAND_CTRL_CHANGE) {
index 2f2e745..8ead7c8 100644 (file)
@@ -46,7 +46,7 @@ static void sc3_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
                if ( ctrl & NAND_CLE )
                        set_bit (SC3_NAND_CLE, sc3_control_base);
                else
-                       clear_bit (SC3_NAND_CLE, sc3_control_base);                     
+                       clear_bit (SC3_NAND_CLE, sc3_control_base);
                if ( ctrl & NAND_ALE )
                        set_bit (SC3_NAND_ALE, sc3_control_base);
                else
@@ -54,7 +54,7 @@ static void sc3_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
                if ( ctrl & NAND_NCE )
                        set_bit (SC3_NAND_CE, sc3_control_base);
                else
-                       clear_bit (SC3_NAND_CE, sc3_control_base);              
+                       clear_bit (SC3_NAND_CE, sc3_control_base);
        }
 
     if (cmd != NAND_CMD_NONE)
index 3e76d82..f825234 100644 (file)
@@ -328,7 +328,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                printf("\nNAND %s: ", read ? "read" : "write");
                if (arg_off_size(argc - 3, argv + 3, nand, &off, &size) != 0)
                        return 1;
-               
+
                s = strchr(cmd, '.');
                if (s != NULL &&
                        (!strcmp(s, ".jffs2") || !strcmp(s, ".e") || !strcmp(s, ".i"))) {
index 43041b6..196fc14 100644 (file)
@@ -376,7 +376,7 @@ int board_nand_init(struct nand_chip *nand)
 //     nand->autooob     = &davinci_nand_oobinfo;
        nand->ecc.calculate = nand_davinci_calculate_ecc;
        nand->ecc.correct  = nand_davinci_correct_data;
-       nand->ecc.hwctl  = nand_davinci_enable_hwecc;   
+       nand->ecc.hwctl  = nand_davinci_enable_hwecc;
 #else
        nand->ecc.mode     = NAND_ECC_SOFT;
 #endif
index aeb1797..e21a18b 100644 (file)
@@ -2080,7 +2080,7 @@ int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
 
        /* Calculate pages in each block */
        pages_per_block = 1 << (chip->phys_erase_shift - chip->page_shift);
-       
+
        /* Select the NAND device */
        chip->select_chip(mtd, chipnr);
 
@@ -2748,7 +2748,7 @@ int nand_scan(struct mtd_info *mtd, int maxchips)
                BUG();
        }
 #endif
-       
+
        ret = nand_scan_ident(mtd, maxchips);
        if (!ret)
                ret = nand_scan_tail(mtd);
index 78e70cc..9fe4866 100644 (file)
@@ -128,7 +128,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
        for (;
             erase.addr < opts->offset + erase_length;
             erase.addr += meminfo->erasesize) {
-               
+
                WATCHDOG_RESET ();
 
                if (!opts->scrub && bbtest) {
@@ -163,7 +163,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
                        chip->ops.datbuf = NULL;
                        chip->ops.oobbuf = buf;
                        chip->ops.ooboffs = chip->badblockpos & ~0x01;
-                       
+
                        result = meminfo->write_oob(meminfo,
                                                        erase.addr + meminfo->oobsize,
                                                        &chip->ops);
@@ -254,7 +254,7 @@ static struct nand_ecclayout autoplace_ecclayout = {
  * @chip:      nand chip structure
  * @oob:       oob data buffer
  * @ops:       oob ops structure
- * 
+ *
  * Copied from nand_base.c
  */
 static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob,
@@ -314,13 +314,13 @@ int nand_write_opts(nand_info_t *mtd, loff_t to, mtd_oob_ops_t *ops)
        uint8_t *oob = ops->oobbuf;
        uint8_t *buf = ops->datbuf;
        int ret, subpage;
-       
+
        ops->retlen = 0;
        if (!writelen)
                return 0;
 
        printk("nand_write_opts: to: 0x%08x, ops->len: 0x%08x\n", to, ops->len);
-       
+
        /* reject writes, which are not page aligned */
        if (NOTALIGNED(to) || NOTALIGNED(ops->len)) {
                printk(KERN_NOTICE "nand_write: "
index db8bd7b..2984f5f 100644 (file)
@@ -421,7 +421,7 @@ struct nand_chip {
 
        struct nand_ecc_ctrl ecc;
        struct nand_buffers *buffers;
-       
+
        struct nand_hw_control hwcontrol;
 
        struct mtd_oob_ops ops;