]> git.sur5r.net Git - openocd/blobdiff - src/flash/nand_ecc.c
split nand.c into nand/{core,fileio,tcl}.c
[openocd] / src / flash / nand_ecc.c
index c154d6979898841730bcff583068b8ffaff789b4..7aa1519dde8fd07c9b2876f7fe38f6c29824f5f3 100644 (file)
@@ -68,7 +68,7 @@ static const uint8_t nand_ecc_precalc_table[] = {
 /*
  * nand_calculate_ecc - Calculate 3-byte ECC for 256-byte block
  */
-int nand_calculate_ecc(struct nand_device_s *device, const uint8_t *dat, uint8_t *ecc_code)
+int nand_calculate_ecc(struct nand_device *nand, const uint8_t *dat, uint8_t *ecc_code)
 {
        uint8_t idx, reg1, reg2, reg3, tmp1, tmp2;
        int i;