summaryrefslogtreecommitdiff
path: root/driver/touchpad_elan.c
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-07-06 15:33:25 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-31 11:19:46 -0700
commitb9841cfcdf7404c868ea9967217cf750820b9491 (patch)
tree61b73835164699c6bc44eb00c11f0bf2f9697537 /driver/touchpad_elan.c
parent9bb5117aa350e21f6c15257d7d7a464af4b6d08c (diff)
downloadchrome-ec-b9841cfcdf7404c868ea9967217cf750820b9491.tar.gz
stm32: usb_hid_touchpad: add confidence
`confidence` is expected from a PTP-compliant touchpad BRANCH=none BUG=b:70482333 TEST=manual Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: Ibe7166f43cae5fb36bbcc4e6dfd9ae6525a7225e Reviewed-on: https://chromium-review.googlesource.com/1188170 Commit-Ready: Wei-Han Chen <stimim@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'driver/touchpad_elan.c')
-rw-r--r--driver/touchpad_elan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/touchpad_elan.c b/driver/touchpad_elan.c
index 7f69ada21b..dfedbe6c2d 100644
--- a/driver/touchpad_elan.c
+++ b/driver/touchpad_elan.c
@@ -224,6 +224,7 @@ static int elan_tp_read_report(void)
height = MIN(4095, height * elan_tp_params.width_y);
pressure = MIN(1023, pressure);
+ report.finger[ri].confidence = 1;
report.finger[ri].tip = 1;
report.finger[ri].inrange = 1;
report.finger[ri].id = i;