summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/w90p910_keypad.c
diff options
context:
space:
mode:
authorVignesh R <vigneshr@ti.com>2015-02-03 11:47:05 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-02-03 11:50:39 -0800
commit83edfdf30b6f8d0916e8283fb395589afb9bdacb (patch)
tree450e8646f652f78198aa37e396e0f975b3454c35 /drivers/input/keyboard/w90p910_keypad.c
parente6e4a0d1981febe1188f997e1b4fae0bb40a6e8c (diff)
Input: ti_am335x_tsc - replace delta filtering with median filtering
Previously, delta filtering was applied TSC co-ordinate readouts before reporting a single value to user space. This patch replaces delta filtering with median filtering. Median filtering sorts co-ordinate readouts, drops min and max values, and reports the average of remaining values. This method is more sensible than delta filtering. Median filtering is applied only if number of readouts is greater than 3 else just average of co-ordinate readouts is reported. Signed-off-by: Vignesh R <vigneshr@ti.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/w90p910_keypad.c')
0 files changed, 0 insertions, 0 deletions