X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs%2F.git;a=blobdiff_plain;f=nand_ecc.c;h=c22397b801dce8fc41da5058dca77251357c46d2;hp=84b270dba1f1c9bb9349c5a5cd98f62fead0075b;hb=087046078841616093c6e6babe66eba1bd0ce0d6;hpb=54a94b218fce5de9c076266fc34c9de5bfcd656b diff --git a/nand_ecc.c b/nand_ecc.c index 84b270d..c22397b 100644 --- a/nand_ecc.c +++ b/nand_ecc.c @@ -4,18 +4,20 @@ * Copyright (C) 2000 Steven J. Hill (sjhill@cotw.com) * Toshiba America Electronics Components, Inc. * - * $Id: nand_ecc.c,v 1.1 2002-05-27 18:57:25 charles Exp $ + * $Id: nand_ecc.c,v 1.3 2002-09-27 20:50:50 charles Exp $ * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * version 2.1 as published by the Free Software Foundation. * * This file contains an ECC algorithm from Toshiba that detects and * corrects 1 bit errors in a 256 byte block of data. - * - * - * Slightly hacked to fit in with YAFFS by Charles Manning. */ + // Minor tweak by Charles Manning to prevent exporting symbols + // when compiled in with yaffs. + +const char *nand_ecc_c_version = "$Id: nand_ecc.c,v 1.3 2002-09-27 20:50:50 charles Exp $"; + #if 0 #include #include @@ -211,9 +213,11 @@ int nand_correct_data (u_char *dat, u_char *read_ecc, u_char *calc_ecc) return -1; } - #if 0 EXPORT_SYMBOL(nand_calculate_ecc); EXPORT_SYMBOL(nand_correct_data); -#endif +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Steven J. Hill "); +MODULE_DESCRIPTION("Generic NAND ECC support"); +#endif