diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:15:35 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-29 00:50:38 +0000 |
commit | 285bb4deedb631648796217a98c8bee058f4674a (patch) | |
tree | 264cb492f41ef20c02791a172531c3b9b122116a /chip/ish/hid_device.h | |
parent | a8f99edf161a8cac86af77cf08063e6a06e3e884 (diff) | |
download | chrome-ec-285bb4deedb631648796217a98c8bee058f4674a.tar.gz |
chip/ish/hid_device.h: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: Ic0e240ab4faae2c3660a437dc618985c91701bdb
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729158
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'chip/ish/hid_device.h')
-rw-r--r-- | chip/ish/hid_device.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chip/ish/hid_device.h b/chip/ish/hid_device.h index 0a32e305af..76cd028eef 100644 --- a/chip/ish/hid_device.h +++ b/chip/ish/hid_device.h @@ -11,15 +11,15 @@ #include "hooks.h" -#define HID_SUBSYS_MAX_PAYLOAD_SIZE 4954 +#define HID_SUBSYS_MAX_PAYLOAD_SIZE 4954 enum HID_SUBSYS_ERR { - HID_SUBSYS_ERR_NOT_READY = EC_ERROR_INTERNAL_FIRST + 0, - HID_SUBSYS_ERR_TOO_MANY_HID_DEVICES = EC_ERROR_INTERNAL_FIRST + 1, + HID_SUBSYS_ERR_NOT_READY = EC_ERROR_INTERNAL_FIRST + 0, + HID_SUBSYS_ERR_TOO_MANY_HID_DEVICES = EC_ERROR_INTERNAL_FIRST + 1, }; -typedef void * hid_handle_t; -#define HID_INVALID_HANDLE NULL +typedef void *hid_handle_t; +#define HID_INVALID_HANDLE NULL struct hid_callbacks { /* @@ -73,11 +73,11 @@ int hid_subsys_set_device_data(const hid_handle_t handle, void *data); /* retrieve HID device specific data */ void *hid_subsys_get_device_data(const hid_handle_t handle); -#define HID_DEVICE_ENTRY(hid_dev) \ - void _hid_dev_entry_##hid_dev(void) \ - { \ +#define HID_DEVICE_ENTRY(hid_dev) \ + void _hid_dev_entry_##hid_dev(void) \ + { \ hid_subsys_register_device(&(hid_dev)); \ - } \ + } \ DECLARE_HOOK(HOOK_INIT, _hid_dev_entry_##hid_dev, HOOK_PRIO_LAST - 2) #endif /* __HID_DEVICE_H */ |