diff options
author | Keith Short <keithshort@chromium.org> | 2022-02-11 16:17:44 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-25 21:11:37 +0000 |
commit | d8919ec637c315c1530af8360c8a0c5508b9eb12 (patch) | |
tree | d36917987aca3581a6618f4e965ffc4f68fa6cc2 | |
parent | 2a0763a76ab2134865171aa010dd9962aeea526c (diff) | |
download | chrome-ec-d8919ec637c315c1530af8360c8a0c5508b9eb12.tar.gz |
gpio: Enable guard for Zephyr sources
Enable the guard that prevents Zephyr source files from including the
legacy GPIO header and API.
BUG=b:218856245
BRANCH=none
TEST=zmake testall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I4f381a05b9b9825acf6100da6625b3a7bce7f4ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489253
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | include/gpio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gpio.h b/include/gpio.h index 5a41c7ea88..341727ce73 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -11,6 +11,9 @@ #include "common.h" #include "console.h" +#ifdef __REQUIRE_ZEPHYR_GPIOS__ +#error "Zephyr source files must use the Zephyr GPIO API" +#endif /* * If compiling with Zephyr, include the GPIO_ definitions to deal with name |