diff options
author | Wei-Han Chen <stimim@google.com> | 2018-08-29 15:52:00 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-31 11:19:48 -0700 |
commit | 188dc60833566b6c93165b60ef1e04b89999c6e0 (patch) | |
tree | 8744c266aac1417fef1271f70afa5171a25d6a9e | |
parent | 3303cf3d0427555beae12d4bb1af37303dfbabef (diff) | |
download | chrome-ec-188dc60833566b6c93165b60ef1e04b89999c6e0.tar.gz |
touchpad heatmap: set subclass and protocol
BRANCH=none
TEST=make buildall -j
TEST=test on whiskers
BUG=b:70482333
Signed-off-by: Wei-Han Chen <stimim@chromium.org>
Change-Id: Ieadb743b428997ca1e7c9d45837f503d3023f779
Reviewed-on: https://chromium-review.googlesource.com/1198942
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r-- | driver/touchpad_st.c | 4 | ||||
-rw-r--r-- | include/usb_descriptor.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c index 1a4835125f..424069c275 100644 --- a/driver/touchpad_st.c +++ b/driver/touchpad_st.c @@ -1076,8 +1076,8 @@ static void st_tp_usb_tx_callback(struct usb_isochronous_config const *config); USB_ISOCHRONOUS_CONFIG_FULL(usb_st_tp_heatmap_config, USB_IFACE_ST_TOUCHPAD, USB_CLASS_VENDOR_SPEC, - 0, /* subclass */ - 0, /* protocol */ + USB_SUBCLASS_GOOGLE_HEATMAP, + USB_PROTOCOL_GOOGLE_HEATMAP, USB_STR_HEATMAP_NAME, /* interface name */ USB_EP_ST_TOUCHPAD, USB_ISO_PACKET_SIZE, diff --git a/include/usb_descriptor.h b/include/usb_descriptor.h index a0e9d843cc..aadb5dc80a 100644 --- a/include/usb_descriptor.h +++ b/include/usb_descriptor.h @@ -208,6 +208,9 @@ struct usb_endpoint_descriptor { #define USB_SUBCLASS_GOOGLE_POWER 0x54 #define USB_PROTOCOL_GOOGLE_POWER 0x01 +#define USB_SUBCLASS_GOOGLE_HEATMAP 0x55 +#define USB_PROTOCOL_GOOGLE_HEATMAP 0x01 + /* Control requests */ /* bRequestType fields */ |