summaryrefslogtreecommitdiff
path: root/chip/ish/hid_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/ish/hid_device.h')
-rw-r--r--chip/ish/hid_device.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/chip/ish/hid_device.h b/chip/ish/hid_device.h
index 0a32e305af..ba7722f5bb 100644
--- a/chip/ish/hid_device.h
+++ b/chip/ish/hid_device.h
@@ -1,4 +1,4 @@
-/* Copyright 2018 The Chromium OS Authors. All rights reserved.
+/* Copyright 2018 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -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 */