diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 13:46:12 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:17:21 +0000 |
commit | d0a517d8d8c073d2187e178343761872d0229bd5 (patch) | |
tree | c4e6237d1c39f0022820f6756941bb8bcf0b4f47 /test/usb_pe_drp.c | |
parent | 1c560952691392bab354f01d4d434f664f5123b3 (diff) | |
download | chrome-ec-d0a517d8d8c073d2187e178343761872d0229bd5.tar.gz |
test: usb_mux: Split struct usb_mux in tests
Update tests 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: I2d01d35d1155a6cdec558bedf06b09e0b00aa642
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780413
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'test/usb_pe_drp.c')
-rw-r--r-- | test/usb_pe_drp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/usb_pe_drp.c b/test/usb_pe_drp.c index 0c8795efb4..8d75454c6a 100644 --- a/test/usb_pe_drp.c +++ b/test/usb_pe_drp.c @@ -28,8 +28,11 @@ 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) |