projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added files that support the ability to "patchin" yaffs2 into the 2.6
[yaffs2.git]
/
yaffs_mtdif.c
diff --git
a/yaffs_mtdif.c
b/yaffs_mtdif.c
index 2dfc7058c619307cd92aa79f0c68843e8f2f9b91..13df3d98a8faa7bd4b71b641606f6b445e994786 100644
(file)
--- a/
yaffs_mtdif.c
+++ b/
yaffs_mtdif.c
@@
-13,12
+13,12
@@
*
*/
*
*/
-const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.1 2004-12-17 04:39:04 charles Exp $";
-
-#ifdef CONFIG_YAFFS_MTD_ENABLED
+const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.6 2005-07-31 08:38:41 marty Exp $";
#include "yportenv.h"
#include "yportenv.h"
+#ifdef CONFIG_YAFFS_YAFFS1
+
#include "yaffs_mtdif.h"
#include "linux/mtd/mtd.h"
#include "yaffs_mtdif.h"
#include "linux/mtd/mtd.h"
@@
-29,17
+29,17
@@
const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.1 2004-12-17 04:39:0
#include "linux/mtd/nand.h"
#endif
#include "linux/mtd/nand.h"
#endif
-struct nand_oobinfo yaffs_oobinfo = {
-
useecc:
1,
-
eccpos:
{8, 9, 10, 13, 14, 15}
+st
atic st
ruct nand_oobinfo yaffs_oobinfo = {
+
.useecc =
1,
+
.eccpos =
{8, 9, 10, 13, 14, 15}
};
};
-struct nand_oobinfo yaffs_noeccinfo = {
-
useecc:
0,
+st
atic st
ruct nand_oobinfo yaffs_noeccinfo = {
+
.useecc =
0,
};
};
-int nandmtd_WriteChunkToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, yaffs_Spare *spare)
+int nandmtd_WriteChunkToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data,
const
yaffs_Spare *spare)
{
struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice);
size_t dummy;
{
struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice);
size_t dummy;
@@
-159,5
+159,5
@@
int nandmtd_InitialiseNAND(yaffs_Device *dev)
return YAFFS_OK;
}
return YAFFS_OK;
}
-#endif // CONFIG_YAFFS_
MTD_ENABLED
+#endif // CONFIG_YAFFS_
YAFFS1