Fix type cacl -> calc
authorCharles Manning <cdhmanning@gmail.com>
Fri, 10 Jun 2011 04:14:17 +0000 (16:14 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Fri, 10 Jun 2011 04:14:17 +0000 (16:14 +1200)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs_ecc.c
yaffs_ecc.h
yaffs_tagscompat.c

index 0f38807..9294107 100644 (file)
@@ -69,7 +69,7 @@ static const unsigned char column_parity_table[] = {
 
 
 /* Calculate the ECC for a 256-byte block of data */
-void yaffs_ecc_cacl(const unsigned char *data, unsigned char *ecc)
+void yaffs_ecc_calc(const unsigned char *data, unsigned char *ecc)
 {
        unsigned int i;
        unsigned char col_parity = 0;
index 5328ad5..17d47bd 100644 (file)
@@ -32,7 +32,7 @@ struct yaffs_ecc_other {
        unsigned line_parity_prime;
 };
 
-void yaffs_ecc_cacl(const unsigned char *data, unsigned char *ecc);
+void yaffs_ecc_calc(const unsigned char *data, unsigned char *ecc);
 int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc,
                      const unsigned char *test_ecc);
 
index fb5495f..9ac5896 100644 (file)
@@ -24,8 +24,8 @@ static void yaffs_handle_rd_data_error(struct yaffs_dev *dev, int nand_chunk);
 
 void yaffs_calc_ecc(const u8 *data, struct yaffs_spare *spare)
 {
-       yaffs_ecc_cacl(data, spare->ecc1);
-       yaffs_ecc_cacl(&data[256], spare->ecc2);
+       yaffs_ecc_calc(data, spare->ecc1);
+       yaffs_ecc_calc(&data[256], spare->ecc2);
 }
 
 void yaffs_calc_tags_ecc(struct yaffs_tags *tags)
@@ -162,10 +162,10 @@ static int yaffs_rd_chunk_nand(struct yaffs_dev *dev,
                        int ecc_result1, ecc_result2;
                        u8 calc_ecc[3];
 
-                       yaffs_ecc_cacl(data, calc_ecc);
+                       yaffs_ecc_calc(data, calc_ecc);
                        ecc_result1 =
                            yaffs_ecc_correct(data, spare->ecc1, calc_ecc);
-                       yaffs_ecc_cacl(&data[256], calc_ecc);
+                       yaffs_ecc_calc(&data[256], calc_ecc);
                        ecc_result2 =
                            yaffs_ecc_correct(&data[256], spare->ecc2,
                                              calc_ecc);