summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-07-17 19:50:28 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-03 01:31:18 -0700
commitd2341b237f750b1b5daf7e92fb47e12d3316f7ec (patch)
tree753435c4968ea1e47a455d884c0e6d926f8c8426 /include
parent535c4d4a6a0e1c669ddee3c81b45faa22ac27196 (diff)
downloadchrome-ec-d2341b237f750b1b5daf7e92fb47e12d3316f7ec.tar.gz
usb_hid_touchpad: make max pressure configurable
Maximum pressure is now defined by CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Z. `hammer` is the only board using usb_hid_touchpad, the board.h is updated to reflect the change (for old boards "HAMMER" and "STAFF", we keep the value 1023, so they should behave the same). BRANCH=none BUG=b:70482333 TEST=make BOARD=whiskers TEST=make buildall -j TEST=manually on device Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I70b0a5b19dfbe3ac731ef2ead08578a7f7a1cb0b Reviewed-on: https://chromium-review.googlesource.com/1141676 Commit-Ready: Wei-Han Chen <stimim@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 571e9a7e56..7e3e269181 100644
--- a/include/config.h
+++ b/include/config.h
@@ -3245,6 +3245,7 @@
/* HID touchpad logical dimensions */
#undef CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X
#undef CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y
+#undef CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_PRESSURE
/* HID touchpad physical dimensions (tenth of mm) */
#undef CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X
#undef CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y