summaryrefslogtreecommitdiff
path: root/include/usb_hid.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:17:10 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 01:43:43 +0000
commit726865bd036d235bbc35ad45872878c762d2b7cc (patch)
treeb9790ed33bc30d6aac939978b174c9fbaf19bc4a /include/usb_hid.h
parentcf1bfcd64660538c8d11f9f765fc109d744bcfe5 (diff)
downloadchrome-ec-726865bd036d235bbc35ad45872878c762d2b7cc.tar.gz
include/usb_hid.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I92dd3e5666f0e951cb50a931a58fa3922eb07290 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730434 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include/usb_hid.h')
-rw-r--r--include/usb_hid.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/usb_hid.h b/include/usb_hid.h
index e7b1cfe74b..6432b8ba05 100644
--- a/include/usb_hid.h
+++ b/include/usb_hid.h
@@ -8,39 +8,39 @@
#ifndef __CROS_EC_USB_HID_H
#define __CROS_EC_USB_HID_H
-#define USB_HID_SUBCLASS_BOOT 1
+#define USB_HID_SUBCLASS_BOOT 1
#define USB_HID_PROTOCOL_KEYBOARD 1
-#define USB_HID_PROTOCOL_MOUSE 2
+#define USB_HID_PROTOCOL_MOUSE 2
/* USB HID Class requests */
-#define USB_HID_REQ_GET_REPORT 0x01
-#define USB_HID_REQ_GET_IDLE 0x02
-#define USB_HID_REQ_GET_PROTOCOL 0x03
-#define USB_HID_REQ_SET_REPORT 0x09
-#define USB_HID_REQ_SET_IDLE 0x0A
-#define USB_HID_REQ_SET_PROTOCOL 0x0B
+#define USB_HID_REQ_GET_REPORT 0x01
+#define USB_HID_REQ_GET_IDLE 0x02
+#define USB_HID_REQ_GET_PROTOCOL 0x03
+#define USB_HID_REQ_SET_REPORT 0x09
+#define USB_HID_REQ_SET_IDLE 0x0A
+#define USB_HID_REQ_SET_PROTOCOL 0x0B
/* USB HID class descriptor types */
-#define USB_HID_DT_HID (USB_TYPE_CLASS | 0x01)
-#define USB_HID_DT_REPORT (USB_TYPE_CLASS | 0x02)
-#define USB_HID_DT_PHYSICAL (USB_TYPE_CLASS | 0x03)
+#define USB_HID_DT_HID (USB_TYPE_CLASS | 0x01)
+#define USB_HID_DT_REPORT (USB_TYPE_CLASS | 0x02)
+#define USB_HID_DT_PHYSICAL (USB_TYPE_CLASS | 0x03)
/* Pre-defined report types */
-#define REPORT_TYPE_INPUT 0x01
-#define REPORT_TYPE_OUTPUT 0x02
-#define REPORT_TYPE_FEATURE 0x03
+#define REPORT_TYPE_INPUT 0x01
+#define REPORT_TYPE_OUTPUT 0x02
+#define REPORT_TYPE_FEATURE 0x03
struct usb_hid_class_descriptor {
- uint8_t bDescriptorType;
+ uint8_t bDescriptorType;
uint16_t wDescriptorLength;
} __packed;
struct usb_hid_descriptor {
- uint8_t bLength;
- uint8_t bDescriptorType;
+ uint8_t bLength;
+ uint8_t bDescriptorType;
uint16_t bcdHID;
- uint8_t bCountryCode;
- uint8_t bNumDescriptors;
+ uint8_t bCountryCode;
+ uint8_t bNumDescriptors;
struct usb_hid_class_descriptor desc[1];
} __packed;