From 3b0643fc0d48b1c8c052cde4045c0b143e5696db Mon Sep 17 00:00:00 2001 From: Keith Short Date: Fri, 28 Apr 2023 09:58:35 -0600 Subject: config: Don't allow legacy INA drivers with Zephyr Zephyr provides duplicate symbol CONFIG_INA3221 upstream. Don't allow Zephyr boards to modify this symbol directly. BUG=b:279955995 BRANCH=none TEST=make check_undef TEST=make BOARD=eve Change-Id: I011ebd0896de78fb99d8a5264e753f36f841397e Signed-off-by: Keith Short Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4490505 Reviewed-by: Tristan Honscheid Reviewed-by: Sam Hurst --- include/config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index f99253b49b..b354956bb5 100644 --- a/include/config.h +++ b/include/config.h @@ -2857,10 +2857,15 @@ * Only one of these may be defined (if any). */ #ifndef CONFIG_ZEPHYR +/* + * These symbols also exist as Kconfigs in Zephyr. Zephyr based boards + * need to use the upstream driver, or these symbols need to be changed + * downstream to not conflict. + */ #undef CONFIG_INA219 +#undef CONFIG_INA3221 #endif /* CONFIG_ZEPHYR */ #undef CONFIG_INA231 -#undef CONFIG_INA3221 /*****************************************************************************/ /* Inductive charging */ -- cgit v1.2.1