diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 12:02:39 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:13:52 +0000 |
commit | 23ac6befd1b5cde6a815f3e08c1c3dd0a49b34ea (patch) | |
tree | f2d8d601ae25c8b0f97cccc5d635df97f725b682 /board/puff/board.c | |
parent | 2346cc959882ad60e422d9469f808d36d22ea97c (diff) | |
download | chrome-ec-23ac6befd1b5cde6a815f3e08c1c3dd0a49b34ea.tar.gz |
puff: usb_mux: Split struct usb_mux in puff boards
Update puff boards 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: Ib2e266439a829d3176491c154fc9623c9e635563
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779633
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/puff/board.c')
-rw-r--r-- | board/puff/board.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/board/puff/board.c b/board/puff/board.c index 60e274f1bb..d863b5fc0b 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -272,11 +272,13 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .flags = TCPC_FLAGS_RESET_ACTIVE_HIGH, }, }; -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_PD_PORT_TCPC_0] = { - .usb_port = USB_PD_PORT_TCPC_0, - .driver = &anx7447_usb_mux_driver, - .hpd_update = &anx7447_tcpc_update_hpd_status, + .mux = &(const struct usb_mux) { + .usb_port = USB_PD_PORT_TCPC_0, + .driver = &anx7447_usb_mux_driver, + .hpd_update = &anx7447_tcpc_update_hpd_status, + }, }, }; |