summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2011-06-10 16:14:17 +1200
committerCharles Manning <cdhmanning@gmail.com>2011-06-10 16:14:17 +1200
commit8a888f806c297984b100e2ef94e3bd47849cd541 (patch)
treecd838d3d9ceb2767c7262be0450605ea4af3dc22
parent912be3d8414dea3a2ebf1792698174d3b6d3cbf1 (diff)
Fix type cacl -> calc
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
-rw-r--r--yaffs_ecc.c2
-rw-r--r--yaffs_ecc.h2
-rw-r--r--yaffs_tagscompat.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/yaffs_ecc.c b/yaffs_ecc.c
index 0f38807..9294107 100644
--- a/yaffs_ecc.c
+++ b/yaffs_ecc.c
@@ -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;
diff --git a/yaffs_ecc.h b/yaffs_ecc.h
index 5328ad5..17d47bd 100644
--- a/yaffs_ecc.h
+++ b/yaffs_ecc.h
@@ -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);
diff --git a/yaffs_tagscompat.c b/yaffs_tagscompat.c
index fb5495f..9ac5896 100644
--- a/yaffs_tagscompat.c
+++ b/yaffs_tagscompat.c
@@ -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);