summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/crc.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-11-11 12:22:01 -0700
committerRajat Jain <rajatja@google.com>2020-11-11 19:30:15 +0000
commit90caed85bc8f2c0d2b05b1977e1dd02db614a41b (patch)
tree2239a1e67de38c4eb27b0b2a3838ef9ed1a70a09 /zephyr/shim/src/crc.c
parent013740e2ec6e4452602f63bd873f53dfaa6d1edb (diff)
downloadchrome-ec-90caed85bc8f2c0d2b05b1977e1dd02db614a41b.tar.gz
Revert "zephyr: forward cros_crc8 to zephyrs crc8 impl"
Something slipped through CQ coverage. Need to figure out, but in the mean time, revert the 3 CLs that seemed to have caused the issue. BRANCH=none BUG=chromium:1147953 TEST=none This reverts commit 22ee9a346718a9a07955fd81b0d03c4dde5b2ec8. Change-Id: I5617e39204a7c05001363d5780fa2f52e3e1ea05 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2533355
Diffstat (limited to 'zephyr/shim/src/crc.c')
-rw-r--r--zephyr/shim/src/crc.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/zephyr/shim/src/crc.c b/zephyr/shim/src/crc.c
deleted file mode 100644
index 5c726619ee..0000000000
--- a/zephyr/shim/src/crc.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright 2020 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include <sys/crc.h>
-
-#include "crc8.h"
-
-/* Polynomial representation for x^8 + x^2 + x + 1 is 0x07 */
-#define SMBUS_POLYNOMIAL 0x07
-
-inline uint8_t cros_crc8(const uint8_t *data, int len)
-{
- return crc8(data, len, SMBUS_POLYNOMIAL, 0, false);
-}
-
-uint8_t cros_crc8_arg(const uint8_t *data, int len, uint8_t previous_crc)
-{
- return crc8(data, len, SMBUS_POLYNOMIAL, previous_crc, false);
-}