diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 15:41:12 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-01 15:44:44 +0000 |
commit | b8a9f4d4e7b3f89c13f24726cd76ff9e5620219d (patch) | |
tree | 0423846463be370957a210f9d8d398c084d0b687 /zephyr/test/drivers | |
parent | 84f1accf5b3ddcddc0101196fe5827a1e16203fa (diff) | |
download | chrome-ec-b8a9f4d4e7b3f89c13f24726cd76ff9e5620219d.tar.gz |
zephyr/test/drivers/src/integration/usbc/usb_alt_mode.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: If795782cb9f1ae0048147c2a99e22503c1c69f09
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730973
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/test/drivers')
-rw-r--r-- | zephyr/test/drivers/src/integration/usbc/usb_alt_mode.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/zephyr/test/drivers/src/integration/usbc/usb_alt_mode.c b/zephyr/test/drivers/src/integration/usbc/usb_alt_mode.c index 04b98b4a28..ebc2816d1a 100644 --- a/zephyr/test/drivers/src/integration/usbc/usb_alt_mode.c +++ b/zephyr/test/drivers/src/integration/usbc/usb_alt_mode.c @@ -175,8 +175,8 @@ ZTEST_F(usbc_alt_mode, verify_discovery) uint8_t response_buffer[EC_LPC_HOST_PACKET_SIZE]; struct ec_response_typec_discovery *discovery = (struct ec_response_typec_discovery *)response_buffer; - host_cmd_typec_discovery(TEST_PORT, TYPEC_PARTNER_SOP, - response_buffer, sizeof(response_buffer)); + host_cmd_typec_discovery(TEST_PORT, TYPEC_PARTNER_SOP, response_buffer, + sizeof(response_buffer)); /* The host command does not count the VDM header in identity_count. */ zassert_equal(discovery->identity_count, @@ -184,11 +184,10 @@ ZTEST_F(usbc_alt_mode, verify_discovery) "Expected %d identity VDOs, got %d", fixture->partner.identity_vdos - 1, discovery->identity_count); - zassert_mem_equal(discovery->discovery_vdo, - fixture->partner.identity_vdm + 1, - discovery->identity_count * - sizeof(*discovery->discovery_vdo), - "Discovered SOP identity ACK did not match"); + zassert_mem_equal( + discovery->discovery_vdo, fixture->partner.identity_vdm + 1, + discovery->identity_count * sizeof(*discovery->discovery_vdo), + "Discovered SOP identity ACK did not match"); zassert_equal(discovery->svid_count, 1, "Expected 1 SVID, got %d", discovery->svid_count); zassert_equal(discovery->svids[0].svid, USB_SID_DISPLAYPORT, |