summaryrefslogtreecommitdiff
path: root/include/usb_bb.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:16:53 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 17:04:24 +0000
commitda528aa23c375fea32fcb6ed8eccdd2981f09811 (patch)
treed7893b308cecbae53d1b96cc79fbbcaf6635b18e /include/usb_bb.h
parent962a1a0b18ebd347c2473f220d6fd7c2b9d58303 (diff)
downloadchrome-ec-da528aa23c375fea32fcb6ed8eccdd2981f09811.tar.gz
include/usb_bb.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I9d60b85dab928d51704b32d88bc0cb2e833aaeb1 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730428 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include/usb_bb.h')
-rw-r--r--include/usb_bb.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/include/usb_bb.h b/include/usb_bb.h
index e2303f13e6..c73c6339e1 100644
--- a/include/usb_bb.h
+++ b/include/usb_bb.h
@@ -17,7 +17,6 @@
#define USB_BB_EP0_PACKET_SIZE 8
#define USB_BB_CAP_DESC_TYPE 0x0d
-
#define USB_BB_CAPS_SVID_SIZE 4
struct usb_bb_caps_svid_descriptor {
uint16_t wSVID;
@@ -38,16 +37,14 @@ struct usb_bb_caps_base_descriptor {
uint32_t bReserved; /* SBZ */
} __packed;
-
-#define USB_BB_VCONN_PWRON(x) (x << 15)
-#define USB_BB_VCONN_PWR_1W 0
-#define USB_BB_VCONN_PWR_1p5W 1
-#define USB_BB_VCONN_PWR_2W 2
-#define USB_BB_VCONN_PWR_3W 3
-#define USB_BB_VCONN_PWR_4W 4
-#define USB_BB_VCONN_PWR_5W 5
-#define USB_BB_VCONN_PWR_6W 6
+#define USB_BB_VCONN_PWRON(x) (x << 15)
+#define USB_BB_VCONN_PWR_1W 0
+#define USB_BB_VCONN_PWR_1p5W 1
+#define USB_BB_VCONN_PWR_2W 2
+#define USB_BB_VCONN_PWR_3W 3
+#define USB_BB_VCONN_PWR_4W 4
+#define USB_BB_VCONN_PWR_5W 5
+#define USB_BB_VCONN_PWR_6W 6
/* Note, 7W (111b) is reserved */
-
#endif /* __CROS_EC_USB_BB_H */