]> git.hungrycats.org Git - linux/commit
Input: fix defuzzing logic
authorDmitry Torokhov <dtor@chromium.org>
Sat, 19 Jul 2014 23:30:31 +0000 (16:30 -0700)
committerJiri Slaby <jslaby@suse.cz>
Wed, 30 Jul 2014 16:02:39 +0000 (18:02 +0200)
commitb1e86fbd194436742e891f9b952edae638d1ccf7
treef6acd2b09150d08cc21150a77a8f2d685d0772ae
parent47eaa7f5c570dbb30580a5ec23160ba2c0a6368d
Input: fix defuzzing logic

commit 50c5d36dab930b1f1b1e3348b8608aa8b9ee7610 upstream.

We attempt to remove noise from coordinates reported by devices in
input_handle_abs_event(), unfortunately, unless we were dropping the
event altogether, we were ignoring the adjusted value and were passing
on the original value instead.

Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/input/input.c