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 bdf1d6ee456450acdcee3d816479296b3c2553b5..d90bdd071c97f1f01cad64c9305c486261dc89c7 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 4bc4257c889ab724b115e3b85fd9cff6b8fbe1e3..ea6400c04973d7d59844fc4882f3370f44933beb 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 faec6053f7e7fd6626746be323023355d494d76c..f59f5e2c9c5485e63daa1993710323a169743421 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 302d78efef1800dd507d151ed5451d2df63dd21d..961c92112d1fde0e88a3521e748950d6d05b8bf7 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 3224d3dd638fe79e7f6c682c7481f49cdb79c119..e1495feea10f892164fa0bef4dc6d702b186b679 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 2f2e7458975fa38765d2202190c77b5a452ec34a..8ead7c850a8750205fc7b0b911af11157f609f00 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 3e76d8207d69994d760cd423b326446bb01c3594..f825234a7c839df1da2fe07bf2a0707a8667c5ba 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 43041b635c0fdcc39a032036ca7f09e5a2e4c8a0..196fc146b38f8c3ac7b5f2a3b2be2fefa1cbc2d7 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 aeb179731d662925b4a99b6d964bdec9f3f584db..e21a18baa4a2faa0ddb67cb0ae4a3a45aab12eb6 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 78e70cc807d92cf60d35d48194a7fd317e0c91c7..9fe486698c14560de861d5510d27b7ccd16a89cf 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 db8bd7ba22e0bf31754a3418bc4f0afd7a1125ff..2984f5f282f6b1d661ae71267d504263aa84ac83 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;