mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 02:15:14 +00:00
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>
31 lines
685 B
C
31 lines
685 B
C
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* USB HID definitions.
|
|
*/
|
|
|
|
#ifndef __CROS_EC_USB_HID_KEYBOARD_H
|
|
#define __CROS_EC_USB_HID_KEYBOARD_H
|
|
|
|
struct usb_hid_touchpad_report {
|
|
uint8_t id; /* 0x01 */
|
|
struct {
|
|
unsigned tip:1;
|
|
unsigned inrange:1;
|
|
unsigned id:4;
|
|
unsigned pressure:10;
|
|
unsigned width:12;
|
|
unsigned height:12;
|
|
unsigned x:12;
|
|
unsigned y:12;
|
|
} __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);
|
|
|
|
#endif
|