summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-10-27 13:47:45 -0600
committerCommit Bot <commit-bot@chromium.org>2021-10-28 00:19:23 +0000
commit04b378eeb5ec0042f4972eb55808ff2a3137c142 (patch)
treec5e27eb2eb654bc698b04e0ead79c3de0737ae1a /driver
parentf7dd1cfa0abc5fdb908385f308332713d10b031a (diff)
downloadchrome-ec-04b378eeb5ec0042f4972eb55808ff2a3137c142.tar.gz
AMD FP6: Correct array size
The value CONFIG_USB_PD_PORT_MAX_COUNT is the standard one to use for arrays representing PD ports. BRANCH=None BUG=b:195137794 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ic7c6aecfa3b44be4b412919a27be996879315bd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3248970 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/usb_mux/amd_fp6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/usb_mux/amd_fp6.c b/driver/usb_mux/amd_fp6.c
index b2d5ae1fb4..a692fbcf3e 100644
--- a/driver/usb_mux/amd_fp6.c
+++ b/driver/usb_mux/amd_fp6.c
@@ -34,7 +34,7 @@ static struct {
const struct usb_mux *mux;
uint8_t val;
bool write_pending;
-} saved_mux_state[USBC_PORT_COUNT];
+} saved_mux_state[CONFIG_USB_PD_PORT_MAX_COUNT];
static int amd_fp6_mux_port0_read(const struct usb_mux *me, uint8_t *val)
{