浏览代码

nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe PLAGNIOL-VILLARD 16 年之前
父节点
当前提交
0176c03a24
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mtd/nand/nomadik.c

+ 1 - 1
drivers/mtd/nand/nomadik.c

@@ -42,7 +42,7 @@ static inline int parity(int b) /* b is really a byte; returns 0 or ~0 */
  * HW claims to make the calculation but not the correction; so we must
  * HW claims to make the calculation but not the correction; so we must
  * recalculate the bytes for a comparison.
  * recalculate the bytes for a comparison.
  */
  */
-static int ecc512(unsigned char *data, unsigned char *ecc)
+static int ecc512(const unsigned char *data, unsigned char *ecc)
 {
 {
 	int gpar = 0;
 	int gpar = 0;
 	int i, val, par;
 	int i, val, par;