diff options
author | Wei-Han Chen <stimim@google.com> | 2018-09-19 15:12:53 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-26 10:32:06 -0700 |
commit | 63dd0de36d4ca7148a3c775ffb59c7eff610cf93 (patch) | |
tree | 051b712ff3331716f01bc37a47d97ff757263a9c /chip | |
parent | 8649d800a9dd9c23de199029b2db25827f687925 (diff) | |
download | chrome-ec-63dd0de36d4ca7148a3c775ffb59c7eff610cf93.tar.gz |
usb_hid_touchpad: fix logical max of width & height
Width and Height are 12 bits in USB HID descriptor. But the logical
maximum was set to 255.
Also scale up width and height reported by ST firmware.
BRANCH=nocturne
BUG=none
TEST=manual on whiskers
Signed-off-by: Wei-Han Chen <stimim@chromium.org>
Change-Id: I899af2b18120d9e877d45e1dc2c14404a412797b
Reviewed-on: https://chromium-review.googlesource.com/1232798
Reviewed-by: Tai-Hsu Lin <sheckylin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/usb_hid_touchpad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_hid_touchpad.c b/chip/stm32/usb_hid_touchpad.c index ca1cb85cb7..0ead660432 100644 --- a/chip/stm32/usb_hid_touchpad.c +++ b/chip/stm32/usb_hid_touchpad.c @@ -89,7 +89,7 @@ const struct usb_endpoint_descriptor USB_EP_DESC(USB_IFACE_HID_TOUCHPAD, 81) = { 0x75, 0x09, /* Report Size (9) */ \ 0x09, 0x30, /* Usage (Tip pressure) */ \ 0x81, 0x02, /* Input (Data,Var,Abs) */ \ - 0x26, 0xFF, 0x00, /* Logical Maximum (255) */ \ + 0x26, 0xFF, 0x0F, /* Logical Maximum (4095) */ \ 0x75, 0x0C, /* Report Size (12) */ \ 0x09, 0x48, /* Usage (WIDTH) */ \ 0x81, 0x02, /* Input (Data,Var,Abs) */ \ |