mtd/drivers/mtd/devices doc2000.c,1.59,1.60
gleixner at infradead.org
gleixner at infradead.org
Wed Apr 7 04:30:07 EDT 2004
- Previous message: mtd/drivers/mtd/devices doc2000.c,1.58,1.59 doc2001.c,1.41,1.42
doc2001plus.c,1.7,1.8
- Next message: mtd/drivers/mtd/maps db1550-flash.c,NONE,1.1 Config.in,1.66,1.67
Kconfig,1.20,1.21
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv30152
Modified Files:
doc2000.c
Log Message:
Fix another nand_ids problem. Fix old compiler warnings
Index: doc2000.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/doc2000.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- doc2000.c 4 Apr 2004 12:36:45 -0000 1.59
+++ doc2000.c 7 Apr 2004 08:30:04 -0000 1.60
@@ -55,9 +55,9 @@
static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
size_t *retlen, const u_char *buf);
static int doc_read_ecc(struct mtd_info *mtd, loff_t from, size_t len,
- size_t *retlen, u_char *buf, u_char *eccbuf, int oobsel);
+ size_t *retlen, u_char *buf, u_char *eccbuf, struct nand_oobinfo *oobsel);
static int doc_write_ecc(struct mtd_info *mtd, loff_t to, size_t len,
- size_t *retlen, const u_char *buf, u_char *eccbuf, int oobsel);
+ size_t *retlen, const u_char *buf, u_char *eccbuf, struct nand_oobinfo *oobsel);
static int doc_writev_ecc(struct mtd_info *mtd, const struct iovec *vecs,
unsigned long count, loff_t to, size_t *retlen,
u_char *eccbuf, struct nand_oobinfo *oobsel);
@@ -412,7 +412,7 @@
doc->id = id;
doc->chipshift =
ffs((nand_flash_ids[i].chipsize << 20)) - 1;
- doc->page256 = nand_flash_ids[i].page256;
+ doc->page256 = (nand_flash_ids[i].pagesize == 256) ? 1 : 0;
doc->pageadrlen = doc->chipshift > 25 ? 3 : 2;
doc->erasesize =
nand_flash_ids[i].erasesize;
@@ -636,7 +636,7 @@
}
static int doc_read_ecc(struct mtd_info *mtd, loff_t from, size_t len,
- size_t * retlen, u_char * buf, u_char * eccbuf, int oobsel)
+ size_t * retlen, u_char * buf, u_char * eccbuf, struct nand_oobinfo *oobsel)
{
struct DiskOnChip *this = (struct DiskOnChip *) mtd->priv;
unsigned long docptr;
@@ -795,7 +795,7 @@
static int doc_write_ecc(struct mtd_info *mtd, loff_t to, size_t len,
size_t * retlen, const u_char * buf,
- u_char * eccbuf, int oobsel)
+ u_char * eccbuf, struct nand_oobinfo *oobsel)
{
struct DiskOnChip *this = (struct DiskOnChip *) mtd->priv;
int di; /* Yes, DI is a hangover from when I was disassembling the binary driver */
- Previous message: mtd/drivers/mtd/devices doc2000.c,1.58,1.59 doc2001.c,1.41,1.42
doc2001plus.c,1.7,1.8
- Next message: mtd/drivers/mtd/maps db1550-flash.c,NONE,1.1 Config.in,1.66,1.67
Kconfig,1.20,1.21
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list