diff options
author | Andrew McRae <amcrae@google.com> | 2022-01-14 16:26:50 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-14 07:23:31 +0000 |
commit | cc05c7dab11a90ec05d7fe0bda4a647d634d8e15 (patch) | |
tree | 85afe340c3ba88fee4a6a0286f70d33f97aa591c | |
parent | 66b8e123a7740c1bc288894a23ef20860ae708bf (diff) | |
download | chrome-ec-cc05c7dab11a90ec05d7fe0bda4a647d634d8e15.tar.gz |
nissa: Fix USB pd port count from sub-board
Try putting a break into the case statement.
C is not Go, case statements fall through...
BUG=b:213996924
TEST=zmake configure -b nivviks; flash and run
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I8165409686c6dd77357ddf304854c7528b227a99
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3386979
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
-rw-r--r-- | zephyr/projects/nissa/src/usbc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/src/usbc.c b/zephyr/projects/nissa/src/usbc.c index a1cfe0ba7a..5d412006ee 100644 --- a/zephyr/projects/nissa/src/usbc.c +++ b/zephyr/projects/nissa/src/usbc.c @@ -67,10 +67,12 @@ static void init_usb_pd_port_count(void) switch (nissa_get_sb_type()) { default: cached_usb_pd_port_count = 1; + break; case NISSA_SB_C_A: case NISSA_SB_C_LTE: cached_usb_pd_port_count = 2; + break; } } /* |