summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-11-11 09:04:09 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-11 19:43:11 +0000
commit0ff770e0004a73b7e15ef5c185efd97abd23242b (patch)
tree341f31fa08e70deec17d50c11dcc68bf3b62023a
parent0c4651353f9db8cbaeb80680baceedba62d6010b (diff)
downloadchrome-ec-0ff770e0004a73b7e15ef5c185efd97abd23242b.tar.gz
pi3usb9201 shim: Remove unneeded guard
All boards and tests now define the BC1.1 devices in the devictree. Remove an obsolete guard. BUG=none BRANCH=none TEST=twister TEST=zmake compare-builds Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: If28f1932bb7b1febccc07475f759867a45c01299 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4023769 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Yuval Peress <peress@google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--zephyr/shim/src/bc12_pi3usb9201.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/zephyr/shim/src/bc12_pi3usb9201.c b/zephyr/shim/src/bc12_pi3usb9201.c
index 25d1962ff2..cd79e8d4bd 100644
--- a/zephyr/shim/src/bc12_pi3usb9201.c
+++ b/zephyr/shim/src/bc12_pi3usb9201.c
@@ -15,11 +15,6 @@
#include "usbc/utils.h"
#include "i2c/i2c.h"
-#if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT)
-
-BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0,
- "No compatible BC1.2 instance found");
-
#define USBC_PORT_BC12(usbc_id, bc12_id) \
[USBC_PORT_NEW(usbc_id)] = { \
.i2c_port = I2C_PORT_BY_DEV(bc12_id), \
@@ -56,5 +51,3 @@ void usb1_evt(enum gpio_signal signal)
usb_charger_task_set_event(1, USB_CHG_EVENT_BC12);
}
#endif
-
-#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */