summaryrefslogtreecommitdiff
path: root/lib/crc8.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 12:57:14 -0700
committerTom Rini <trini@konsulko.com>2019-12-02 18:23:07 -0500
commitc3a4d1c3ee1f528a62e0de55ed034fa6d23c0add (patch)
treefa74607979d7d94f35241b3bf939453816662167 /lib/crc8.c
parent840ef4d43b69a687660b3722b9c4a8a44a2912f8 (diff)
downloadu-boot-c3a4d1c3ee1f528a62e0de55ed034fa6d23c0add.tar.gz
common: Drop linux/crc8.h
We have an existing U-Boot header for the one function that this defines. Use that instead of the linux/ one. Move over the nice comment. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/crc8.c')
-rw-r--r--lib/crc8.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/crc8.c b/lib/crc8.c
index 55f7c07285..87b87b675b 100644
--- a/lib/crc8.c
+++ b/lib/crc8.c
@@ -3,7 +3,12 @@
* Copyright (c) 2013 Google, Inc
*/
-#include "linux/crc8.h"
+#ifdef USE_HOSTCC
+#include <arpa/inet.h>
+#else
+#include <common.h>
+#endif
+#include <u-boot/crc.h>
#define POLY (0x1070U << 3)