summaryrefslogtreecommitdiff
path: root/include/usb_hid_touchpad.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-08-02 16:30:30 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-08-02 08:16:00 -0700
commitd633871ef6b95078da5a735c81f8d34f90d647a0 (patch)
tree66ece06a5c6a86bb8d79b016000685ff287e23df /include/usb_hid_touchpad.h
parent577880a1b752924278b44dedff0d7649921b9d49 (diff)
downloadchrome-ec-d633871ef6b95078da5a735c81f8d34f90d647a0.tar.gz
usb_hid_*: Fix __packed struct coding style
EC code style should use __packed at the end of the structure, rather than __attribute__((__packed__)). BRANCH=none BUG=none TEST=Flash hammer Change-Id: Ib5dc71a8439038d46b9bc331bdabff7c57c7300a Signed-off-by: Nicolas Boichat <drinkcat@google.com> Reviewed-on: https://chromium-review.googlesource.com/597037 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/usb_hid_touchpad.h')
-rw-r--r--include/usb_hid_touchpad.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/usb_hid_touchpad.h b/include/usb_hid_touchpad.h
index 76f2d1acef..16d95b76a1 100644
--- a/include/usb_hid_touchpad.h
+++ b/include/usb_hid_touchpad.h
@@ -8,9 +8,9 @@
#ifndef __CROS_EC_USB_HID_KEYBOARD_H
#define __CROS_EC_USB_HID_KEYBOARD_H
-struct __attribute__((__packed__)) usb_hid_touchpad_report {
+struct usb_hid_touchpad_report {
uint8_t id; /* 0x01 */
- struct __attribute__((__packed__)) {
+ struct {
unsigned tip:1;
unsigned inrange:1;
unsigned id:4;
@@ -19,10 +19,10 @@ struct __attribute__((__packed__)) usb_hid_touchpad_report {
unsigned height:12;
unsigned x:12;
unsigned y:12;
- } finger[5];
+ } __packed finger[5];
uint8_t count:7;
uint8_t button:1;
-};
+} __packed;
/* class implementation interfaces */
void set_touchpad_report(struct usb_hid_touchpad_report *report);