X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnand_ecc_kw.c;h=2f6fc4a6c65e3f4fd596bc93c681117881332a7d;hb=f2cbaba3cc4af99db7b4f2682c2e0dd4467655e3;hp=a7fae62610ae877a18cffe6f640866a65d363fd2;hpb=b7b586ac6b6d48f78778a20d7490e022b5ec6c98;p=openocd.git diff --git a/src/flash/nand_ecc_kw.c b/src/flash/nand_ecc_kw.c index a7fae62610..2f6fc4a6c6 100644 --- a/src/flash/nand_ecc_kw.c +++ b/src/flash/nand_ecc_kw.c @@ -3,7 +3,7 @@ * Copyright (C) 2009 Marvell Semiconductor, Inc. * * Authors: Lennert Buytenhek - * Nicolas Pitre + * Nicolas Pitre * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -100,7 +100,7 @@ static void gf_build_log_exp_table(void) * expects the ECC to be computed backward, i.e. from the last byte down * to the first one. */ -int nand_calculate_ecc_kw(struct nand_device_s *device, const u8 *data, u8 *ecc) +int nand_calculate_ecc_kw(struct nand_device_s *nand, const uint8_t *data, uint8_t *ecc) { unsigned int r7, r6, r5, r4, r3, r2, r1, r0; int i; @@ -137,7 +137,7 @@ int nand_calculate_ecc_kw(struct nand_device_s *device, const u8 *data, u8 *ecc) d = data[i]; if (r7) { - u16 *t = gf_exp + gf_log[r7]; + uint16_t *t = gf_exp + gf_log[r7]; r7 = r6 ^ t[0x21c]; r6 = r5 ^ t[0x181];