]> git.sur5r.net Git - openocd/blobdiff - src/flash/nand_ecc_kw.c
Improve str7x config command argument parsing.
[openocd] / src / flash / nand_ecc_kw.c
index de73326676c3ead5da91e969cd3b232a8ac6f4dc..b2ab6b242ef0b3a11ca8884dd25c06b883c88781 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright (C) 2009 Marvell Semiconductor, Inc.
  *
  * Authors: Lennert Buytenhek <buytenh@wantstofly.org>
- *          Nicolas Pitre <nico@cam.org>
+ *          Nicolas Pitre <nico@fluxnic.net>
  *
  * 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
@@ -137,7 +137,7 @@ int nand_calculate_ecc_kw(struct nand_device_s *device, const uint8_t *data, uin
                        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];