summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-08-18 18:09:34 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-19 23:41:31 +0000
commita269059c192811be0ec56120398ad31917c7a18a (patch)
tree84f6f35357f22f265a059325c024aaaaaa9861f5 /include
parent722141bc3060fb60cc6b364d5fc9e8d6536f0788 (diff)
downloadchrome-ec-a269059c192811be0ec56120398ad31917c7a18a.tar.gz
zephyr: drop IS_ZEPHYR_VERSION macro
As noted in the bug, this macro is an antipattern. Drop it. BUG=b:197159539 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I2fa6515149ff31ae650ed4f3fdc65b111f62c5b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3104788 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/cros_version.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/cros_version.h b/include/cros_version.h
index 9cbfaec179..0d3e777dc5 100644
--- a/include/cros_version.h
+++ b/include/cros_version.h
@@ -11,15 +11,6 @@
#include "common.h"
#include "system.h"
-#ifdef CONFIG_ZEPHYR
-#include "version.h"
-
-#define IS_ZEPHYR_VERSION(major, minor) \
- (KERNEL_VERSION_MAJOR == (major) && KERNEL_VERSION_MINOR == (minor))
-#else
-#define IS_ZEPHYR_VERSION(major, minor) false
-#endif /* CONFIG_ZEPHYR */
-
#define CROS_EC_IMAGE_DATA_COOKIE1 0xce778899
#define CROS_EC_IMAGE_DATA_COOKIE2 0xceaabbdd