diff options
Diffstat (limited to 'test/usb_pe_drp_noextended.c')
-rw-r--r-- | test/usb_pe_drp_noextended.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/usb_pe_drp_noextended.c b/test/usb_pe_drp_noextended.c index 68da7426e2..6108458c9c 100644 --- a/test/usb_pe_drp_noextended.c +++ b/test/usb_pe_drp_noextended.c @@ -1,4 +1,4 @@ -/* Copyright 2020 The Chromium OS Authors. All rights reserved. +/* Copyright 2020 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * @@ -24,18 +24,19 @@ 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] = { - { - .driver = &mock_usb_mux_driver, - } -}; +const struct usb_mux_chain usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { { + .mux = + &(const struct usb_mux){ + .driver = &mock_usb_mux_driver, + }, +} }; void before_test(void) { mock_tc_port_reset(); } -void run_test(int argc, char **argv) +void run_test(int argc, const char **argv) { test_reset(); |