projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change nBytesPerChunk to nDataBytesPerChunk
[yaffs2.git]
/
yaffs_mtdif2.c
diff --git
a/yaffs_mtdif2.c
b/yaffs_mtdif2.c
index 2c4795112621538728f30b387726e38fe03c81dd..4e8c3358e8308fafc912dd07eef6d26cece7b49c 100644
(file)
--- a/
yaffs_mtdif2.c
+++ b/
yaffs_mtdif2.c
@@
-16,7
+16,7
@@
/* mtd interface for YAFFS2 */
const char *yaffs_mtdif2_c_version =
/* mtd interface for YAFFS2 */
const char *yaffs_mtdif2_c_version =
- "$Id: yaffs_mtdif2.c,v 1.1
4 2006-10-03 10:13:03
charles Exp $";
+ "$Id: yaffs_mtdif2.c,v 1.1
5 2006-11-08 06:24:34
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-59,7
+59,7
@@
int nandmtd2_WriteChunkWithTagsToNAND(yaffs_Device * dev, int chunkInNAND,
if (data) {
ops.mode = MTD_OOB_AUTO;
ops.ooblen = sizeof(pt);
if (data) {
ops.mode = MTD_OOB_AUTO;
ops.ooblen = sizeof(pt);
- ops.len = dev->nBytesPerChunk;
+ ops.len = dev->n
Data
BytesPerChunk;
ops.ooboffs = 0;
ops.datbuf = (__u8 *)data;
ops.oobbuf = (void *)&pt;
ops.ooboffs = 0;
ops.datbuf = (__u8 *)data;
ops.oobbuf = (void *)&pt;
@@
-120,12
+120,12
@@
int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND,
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17))
if (data && !tags)
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17))
if (data && !tags)
- retval = mtd->read(mtd, addr, dev->nBytesPerChunk,
+ retval = mtd->read(mtd, addr, dev->n
Data
BytesPerChunk,
&dummy, data);
else if (tags) {
ops.mode = MTD_OOB_AUTO;
ops.ooblen = sizeof(pt);
&dummy, data);
else if (tags) {
ops.mode = MTD_OOB_AUTO;
ops.ooblen = sizeof(pt);
- ops.len = data ? dev->nBytesPerChunk : sizeof(pt);
+ ops.len = data ? dev->n
Data
BytesPerChunk : sizeof(pt);
ops.ooboffs = 0;
ops.datbuf = data;
ops.oobbuf = dev->spareBuffer;
ops.ooboffs = 0;
ops.datbuf = data;
ops.oobbuf = dev->spareBuffer;