diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 12:14:08 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:14:23 +0000 |
commit | aa323c2f87f210e1a78db3096c7785c77b937769 (patch) | |
tree | b72dc1f22d04a251a87cc778d0293aa988d71bcd | |
parent | 0c869e8bf3704dea2ff587801d1d9c5034c235ed (diff) | |
download | chrome-ec-aa323c2f87f210e1a78db3096c7785c77b937769.tar.gz |
fizz: usb_mux: Split struct usb_mux in fizz board
Update fizz 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: I4c250392a1f944d0bae6d8b897d1d5818fe037e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779636
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/fizz/board.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/board/fizz/board.c b/board/fizz/board.c index 293421b019..f58083c6ed 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -212,11 +212,14 @@ static int ps8751_tune_mux(const struct usb_mux *me) return EC_SUCCESS; } -const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { { - .usb_port = 0, - .driver = &tcpci_tcpm_usb_mux_driver, - .hpd_update = &ps8xxx_tcpc_update_hpd_status, - .board_init = &ps8751_tune_mux, +const struct usb_mux_chain usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { { + .mux = + &(const struct usb_mux){ + .usb_port = 0, + .driver = &tcpci_tcpm_usb_mux_driver, + .hpd_update = &ps8xxx_tcpc_update_hpd_status, + .board_init = &ps8751_tune_mux, + }, } }; const int usb_port_enable[USB_PORT_COUNT] = { |