summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-09-03 11:37:47 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-09-03 08:50:34 -0700
commit0632d12a3c72a54cad441905820455ed93383c0e (patch)
treeea9d98096c8621aaf69d02eb0e734ed42e8d838f /chip
parent3bd2ae3c4a5ef5423bdbe62b35fa2384a9026d35 (diff)
downloadchrome-ec-0632d12a3c72a54cad441905820455ed93383c0e.tar.gz
usb_hid_touchpad: fix report count of device capabilities
The report count of 'device capabilities' was incorrect. This causes a 'HID_DG_BUTTONTYPE out of range' error when hammer device is connected to linux system. BRANCH=none BUG=None TEST=connect whiskers to system, no error message on dmesg Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I3a20d7c9f69b5df3eca678b94ae22a3a171098ce Reviewed-on: https://chromium-review.googlesource.com/1201643 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/usb_hid_touchpad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_hid_touchpad.c b/chip/stm32/usb_hid_touchpad.c
index 1c301a04a1..ca1cb85cb7 100644
--- a/chip/stm32/usb_hid_touchpad.c
+++ b/chip/stm32/usb_hid_touchpad.c
@@ -172,7 +172,7 @@ static const uint8_t report_desc[] = {
0x09, 0x59, /* Usage (Pad Type) */
0x25, 0x0F, /* Logical Maximum (15) */
0x75, 0x08, /* Report Size (8) */
- 0x95, 0x01, /* Report Count (2) */
+ 0x95, 0x02, /* Report Count (2) */
0xB1, 0x02, /* Feature (Data,Var,Abs) */
/* Page 0xFF, usage 0xC5 is device certificate. */