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
- Previous message: mtd/drivers/mtd/nand Kconfig, 1.34, 1.35 au1550nd.c, 1.12,
1.13 autcpu12.c, 1.22, 1.23 diskonchip.c, 1.54, 1.55 edb7312.c,
1.11, 1.12 h1910.c, 1.5, 1.6 nand_base.c, 1.153,
1.154 nand_bbt.c, 1.35, 1.36 nand_ecc.c, 1.14, 1.15 nand_ids.c,
1.15, 1.16 nandsim.c, 1.11, 1.12 ppchameleonevb.c, 1.6,
1.7 rtc_from4.c, 1.9, 1.10 s3c2410.c, 1.19, 1.20 sharpsl.c,
1.6, 1.7 spia.c, 1.24, 1.25 toto.c, 1.4, 1.5 tx4925ndfmc.c,
1.5, 1.6 tx4938ndfmc.c, 1.4, 1.5
- Next message: mtd/lib/zlib_inflate infblock.c, 1.1, 1.2 infblock.h, 1.1,
1.2 infcodes.c, 1.1, 1.2 infcodes.h, 1.1, 1.2 inffast.c, 1.1,
1.2 inffast.h, 1.1, 1.2 inflate.c, 1.3, 1.4 inflate_syms.c,
1.1, 1.2 inftrees.c, 1.1, 1.2 inftrees.h, 1.1, 1.2 infutil.c,
1.1, 1.2 infutil.h, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
}
- Previous message: mtd/drivers/mtd/nand Kconfig, 1.34, 1.35 au1550nd.c, 1.12,
1.13 autcpu12.c, 1.22, 1.23 diskonchip.c, 1.54, 1.55 edb7312.c,
1.11, 1.12 h1910.c, 1.5, 1.6 nand_base.c, 1.153,
1.154 nand_bbt.c, 1.35, 1.36 nand_ecc.c, 1.14, 1.15 nand_ids.c,
1.15, 1.16 nandsim.c, 1.11, 1.12 ppchameleonevb.c, 1.6,
1.7 rtc_from4.c, 1.9, 1.10 s3c2410.c, 1.19, 1.20 sharpsl.c,
1.6, 1.7 spia.c, 1.24, 1.25 toto.c, 1.4, 1.5 tx4925ndfmc.c,
1.5, 1.6 tx4938ndfmc.c, 1.4, 1.5
- Next message: mtd/lib/zlib_inflate infblock.c, 1.1, 1.2 infblock.h, 1.1,
1.2 infcodes.c, 1.1, 1.2 infcodes.h, 1.1, 1.2 inffast.c, 1.1,
1.2 inffast.h, 1.1, 1.2 inflate.c, 1.3, 1.4 inflate_syms.c,
1.1, 1.2 inftrees.c, 1.1, 1.2 inftrees.h, 1.1, 1.2 infutil.c,
1.1, 1.2 infutil.h, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list