summaryrefslogtreecommitdiff
path: root/zephyr/shim/src
diff options
context:
space:
mode:
authorDawid Niedzwiecki <dawidn@google.com>2022-04-20 11:53:15 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-25 07:48:51 +0000
commit08a5e281b7bbe469a360e55346e6d0ba08c1e667 (patch)
tree648c146c638c23254088d24c550680fac3561f8b /zephyr/shim/src
parente8bcb6ffa619ad30e3f97290d8e1ee01a56bc107 (diff)
downloadchrome-ec-08a5e281b7bbe469a360e55346e6d0ba08c1e667.tar.gz
zephyr: charger: remove unnecessary checks
The #if statement at the beginning of the shim/charger.c file is not needed once all charger chips are defined in DTS. The BUILD_ASSERT checks are sufficient and tell more about current problems so stay with only them. BUG=b:228237412 TEST=zmake testall BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I178268ea5461154f1779c2de4625f4b268e887ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3596326 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
Diffstat (limited to 'zephyr/shim/src')
-rw-r--r--zephyr/shim/src/charger.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/zephyr/shim/src/charger.c b/zephyr/shim/src/charger.c
index 7196e57b88..506e140e00 100644
--- a/zephyr/shim/src/charger.c
+++ b/zephyr/shim/src/charger.c
@@ -11,11 +11,6 @@
#include "charger/chg_rt9490.h"
#include "charger/chg_sm5803.h"
-#if DT_HAS_COMPAT_STATUS_OKAY(ISL923X_CHG_COMPAT) || \
- DT_HAS_COMPAT_STATUS_OKAY(ISL9241_CHG_COMPAT) || \
- DT_HAS_COMPAT_STATUS_OKAY(RT9490_CHG_COMPAT) || \
- DT_HAS_COMPAT_STATUS_OKAY(SM5803_CHG_COMPAT)
-
#define CHG_CHIP(id, fn) [DT_REG_ADDR(DT_PARENT(id))] = fn(id)
/* Charger chips */
@@ -45,5 +40,3 @@ BUILD_ASSERT(ARRAY_SIZE(chg_chips) == CONFIG_USB_PD_PORT_MAX_COUNT,
"For the OCPC config, the number of defined charger chips must equal "
"the number of USB-C ports.");
#endif
-
-#endif /* #if DT_HAS_COMPAT_STATUS_OKAY */