Input: ad714x - fix captouch wheel option algorithm
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 17 May 2011 06:17:40 +0000 (23:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 17 May 2011 06:20:17 +0000 (23:20 -0700)
commitf1e430e6369f5edac552d99bff15369ef8c6bbd2
tree878ff70b8fd431e25b7cba736cd08ca367936582
parent3532cb0ca2774b05e3c660f536ba3d1b38061fc9
Input: ad714x - fix captouch wheel option algorithm

As reported by Jean-Francois Dagenais, the wheel algorithm caused a
divide by zero exception due to missing variable pre-initialization.
In fact it turned out that the whole algorithm had several problems.
It is therefore replaced with something that is known working.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Tested-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/ad714x.c