projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'u-boot-amlogic-20200406' of https://gitlab.denx.de/u-boot/custodians/u...
[oweals/u-boot.git]
/
cmd
/
i2c.c
diff --git
a/cmd/i2c.c
b/cmd/i2c.c
index 09c4ba9a1c752f48f6b0b5d293be0f6b80f639b8..43a76299b3c82ad197ea466909f25153fc469ce2 100644
(file)
--- a/
cmd/i2c.c
+++ b/
cmd/i2c.c
@@
-71,12
+71,12
@@
#include <console.h>
#include <dm.h>
#include <edid.h>
#include <console.h>
#include <dm.h>
#include <edid.h>
-#include <environment.h>
#include <errno.h>
#include <i2c.h>
#include <malloc.h>
#include <asm/byteorder.h>
#include <linux/compiler.h>
#include <errno.h>
#include <i2c.h>
#include <malloc.h>
#include <asm/byteorder.h>
#include <linux/compiler.h>
+#include <u-boot/crc.h>
/* Display values from last command.
* Memory modify remembered values are different from display memory.
/* Display values from last command.
* Memory modify remembered values are different from display memory.
@@
-769,7
+769,7
@@
static int do_i2c_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
#endif
if (ret)
err++;
#endif
if (ret)
err++;
- crc = crc32
(crc, &byte, 1);
+ crc = crc32(crc, &byte, 1);
addr++;
}
if (err > 0)
addr++;
}
if (err > 0)