mtd/drivers/mtd/onenand onenand_base.c, 1.6, 1.7 onenand_sim.c, 1.1, 1.2

gleixner at infradead.org gleixner at infradead.org
Mon Nov 7 06:15:51 EST 2005


Update of /home/cvs/mtd/drivers/mtd/onenand
In directory phoenix.infradead.org:/tmp/cvs-serv29274/drivers/mtd/onenand

Modified Files:
	onenand_base.c onenand_sim.c 
Log Message:
[MTD / JFFS2] Clean up trailing white spaces


Index: onenand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/onenand/onenand_base.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- onenand_base.c	29 Sep 2005 03:53:12 -0000	1.6
+++ onenand_base.c	7 Nov 2005 11:14:32 -0000	1.7
@@ -255,7 +255,7 @@
 		/* Write 'BSA, BSC' of DataRAM */
 		value = onenand_buffer_address(dataram, sectors, count);
 		this->write_word(value, this->base + ONENAND_REG_START_BUFFER);
-			
+
 		if (readcmd) {
 			/* Select DataRAM for DDP */
 			value = onenand_bufferram_address(this, block);
@@ -433,7 +433,7 @@
  * onenand_check_bufferram - [GENERIC] Check BufferRAM information
  * @param mtd		MTD data structure
  * @param addr		address to check
- * @return		1 if there are valid data, otherwise 0 
+ * @return		1 if there are valid data, otherwise 0
  *
  * Check bufferram if there is data we required
  */
@@ -442,7 +442,7 @@
 	struct onenand_chip *this = mtd->priv;
 	int block, page;
 	int i;
-	
+
 	block = (int) (addr >> this->erase_shift);
 	page = (int) (addr >> this->page_shift);
 	page &= this->page_mask;
@@ -472,7 +472,7 @@
 	struct onenand_chip *this = mtd->priv;
 	int block, page;
 	int i;
-	
+
 	block = (int) (addr >> this->erase_shift);
 	page = (int) (addr >> this->page_shift);
 	page &= this->page_mask;
@@ -743,7 +743,7 @@
 
 	if (memcmp(dataram0, dataram1, mtd->oobblock))
 		return -EBADMSG;
-	
+
 	return 0;
 }
 #else
@@ -832,7 +832,7 @@
 	onenand_release_device(mtd);
 
 	*retlen = written;
-	
+
 	return ret;
 }
 
@@ -917,7 +917,7 @@
 	onenand_release_device(mtd);
 
 	*retlen = written;
-	
+
 	return 0;
 }
 
@@ -969,12 +969,12 @@
 	onenand_get_device(mtd, FL_WRITING);
 
 	/* TODO handling oob */
-	
+
 	/* Loop until all keve's data has been written */
 	len = 0;
 	while (count) {
 		pbuf = buffer;
-		/* 
+		/*
 		 * If the given tuple is >= pagesize then
 		 * write it out from the iov
 		 */
@@ -1316,7 +1316,7 @@
 		if (!(status & ONENAND_WP_US))
 			printk(KERN_ERR "block = %d, wp status = 0x%x\n", block, status);
 	}
-	
+
 	return 0;
 }
 
@@ -1439,7 +1439,7 @@
 		printk(KERN_INFO "Lock scheme is Continues Lock\n");
 		this->options |= ONENAND_CONT_LOCK;
 	}
-	
+
 	return 0;
 }
 
@@ -1533,7 +1533,7 @@
 	}
 
 	memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo));
-	
+
 	/* Fill in remaining MTD driver data */
 	mtd->type = MTD_NANDFLASH;
 	mtd->flags = MTD_CAP_NANDFLASH | MTD_ECC;

Index: onenand_sim.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/onenand/onenand_sim.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- onenand_sim.c	3 Sep 2005 06:32:27 -0000	1.1
+++ onenand_sim.c	7 Nov 2005 11:14:32 -0000	1.2
@@ -74,7 +74,7 @@
 
 	status = ONENAND_GET_WP_STATUS(this);
 	block_lock_scheme = !(this->options & ONENAND_CONT_LOCK);
-	
+
 	switch (cmd) {
 	case ONENAND_CMD_UNLOCK:
 		if (block_lock_scheme)
@@ -241,7 +241,7 @@
 
 		dest = ONENAND_CORE(flash) + this->chipsize + (offset >> 5);
 		if (memcmp(dest, ffchars, onenand_sim->oobsize) &&
-		    onenand_check_overwrite(dest, src, onenand_sim->oobsize)) 
+		    onenand_check_overwrite(dest, src, onenand_sim->oobsize))
 			printk(KERN_ERR "OOB: over-write happend at 0x%08x\n", offset);
 		memcpy(dest, src, onenand_sim->oobsize);
 		break;
@@ -373,7 +373,7 @@
 	else
 		buffer_size = 0x0800;	/* 2KB page */
 	writew(buffer_size, flash->base + ONENAND_REG_DATA_BUFFER_SIZE);
-		
+
 	return 0;
 }
 





More information about the linux-mtd-cvs mailing list