summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Michalec <tm@semihalf.com>2022-07-20 12:32:04 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-13 11:15:36 +0000
commitbb9d6962f347eeeb34029e1858b5b50802b3f91e (patch)
tree86e130d7ba90f26141e3f8121a99138d6670ec2a
parent3a41464a6e8dde794c22ef92e54c69e726779f95 (diff)
downloadchrome-ec-bb9d6962f347eeeb34029e1858b5b50802b3f91e.tar.gz
rainer: usb_mux: Split struct usb_mux in rainier board
Update rainer 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: I52c07cee443f1f3e0e2d567cd1b1ab9e84dd3a21 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780403 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Tested-by: Tomasz Michalec <tmichalec@google.com>
-rw-r--r--board/rainier/board.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/board/rainier/board.c b/board/rainier/board.c
index b62ad28ac1..07a006b671 100644
--- a/board/rainier/board.c
+++ b/board/rainier/board.c
@@ -139,11 +139,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,
+ },
},
};