diff options
Diffstat (limited to 'board/pico/board.c')
-rw-r--r-- | board/pico/board.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/board/pico/board.c b/board/pico/board.c index a2d120c7f3..f884545b6d 100644 --- a/board/pico/board.c +++ b/board/pico/board.c @@ -266,13 +266,16 @@ static void board_hpd_status(const struct usb_mux *me, mux_state_t mux_state, host_set_single_event(EC_HOST_EVENT_USB_MUX); } -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, - .i2c_port = I2C_PORT_USB_MUX, - .i2c_addr_flags = IT5205_I2C_ADDR1_FLAGS, - .driver = &it5205_usb_mux_driver, - .hpd_update = &board_hpd_status, + .mux = + &(const struct usb_mux){ + .usb_port = 0, + .i2c_port = I2C_PORT_USB_MUX, + .i2c_addr_flags = IT5205_I2C_ADDR1_FLAGS, + .driver = &it5205_usb_mux_driver, + .hpd_update = &board_hpd_status, + }, }, }; |