summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Michalec <tm@semihalf.com>2022-07-20 12:36:59 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-13 11:16:04 +0000
commit4f6da132007225b3f49060814b0f87859729386e (patch)
treebc0f7cdf044f03e1d260304315f8a7612ad306a5
parente52cd41d9a438445896467ebeb01509a6367a969 (diff)
downloadchrome-ec-4f6da132007225b3f49060814b0f87859729386e.tar.gz
scarlet: usb_mux: Split struct usb_mux in scarlet board
Update scarlet board to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I35862e08e39702c5f0287f06cabd57f16b9502e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780406 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com>
-rw-r--r--board/scarlet/board.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c
index 4fb6550661..34e5cc456c 100644
--- a/board/scarlet/board.c
+++ b/board/scarlet/board.c
@@ -151,11 +151,14 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
},
};
-const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
+const struct usb_mux_chain usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
{
- .usb_port = 0,
- .driver = &virtual_usb_mux_driver,
- .hpd_update = &virtual_hpd_update,
+ .mux =
+ &(const struct usb_mux){
+ .usb_port = 0,
+ .driver = &virtual_usb_mux_driver,
+ .hpd_update = &virtual_hpd_update,
+ },
},
};