From: Charles Manning Date: Fri, 10 Jun 2011 04:14:17 +0000 (+1200) Subject: Fix type cacl -> calc X-Git-Tag: pre-driver-refactoring~41^2~6 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=8a888f806c297984b100e2ef94e3bd47849cd541 Fix type cacl -> calc Signed-off-by: Charles Manning --- 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);