Mercurial > yaffs-ecoscentric
changeset 230:99c5e0826821
Update mtd interface for inband tags
| author | charles |
|---|---|
| date | Sun, 02 Nov 2008 22:47:13 +0000 |
| parents | 24d738c4d7db |
| children | 66bdb92cfbde |
| files | yaffs_mtdif2.c |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_mtdif2.c +++ b/yaffs_mtdif2.c @@ -107,7 +107,7 @@ int nandmtd2_ReadChunkWithTagsFromNAND(y int retval = 0; int localData = 0; - loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; + loff_t addr = ((loff_t) chunkInNAND) * dev->totalBytesPerChunk; yaffs_PackedTags2 pt; @@ -194,7 +194,7 @@ int nandmtd2_MarkNANDBlockBad(struct yaf retval = mtd->block_markbad(mtd, blockNo * dev->nChunksPerBlock * - dev->nDataBytesPerChunk); + dev->totalBytesPerChunk); if (retval == 0) return YAFFS_OK; @@ -214,7 +214,7 @@ int nandmtd2_QueryNANDBlock(struct yaffs retval = mtd->block_isbad(mtd, blockNo * dev->nChunksPerBlock * - dev->nDataBytesPerChunk); + dev->totalBytesPerChunk); if (retval) { T(YAFFS_TRACE_MTD, (TSTR("block is bad" TENDSTR)));
