mtd/drivers/mtd/nand nand_ecc.c,1.13,1.14

gleixner at infradead.org gleixner at infradead.org
Wed Jun 16 11:34:39 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv5334

Modified Files:
	nand_ecc.c 
Log Message:
Return always 0 for sw ecc

Index: nand_ecc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_ecc.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- nand_ecc.c	28 May 2004 10:58:19 -0000	1.13
+++ nand_ecc.c	16 Jun 2004 15:34:37 -0000	1.14
@@ -114,7 +114,7 @@
  * @dat:	raw data
  * @ecc_code:	buffer for ECC
  */
-void nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code)
+int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code)
 {
 	u_char idx, reg1, reg2, reg3;
 	int j;
@@ -144,6 +144,7 @@
 	ecc_code[0] = ~ecc_code[0];
 	ecc_code[1] = ~ecc_code[1];
 	ecc_code[2] = ((~reg1) << 2) | 0x03;
+	return 0;
 }
 
 /**





More information about the linux-mtd-cvs mailing list