]> git.baikalelectronics.ru Git - kernel.git/commit
Input: kxtj9 - who_am_i check value and initial data rate fixes
authorChristopher Hudson <chris.hudson.comp.eng@gmail.com>
Sat, 17 Mar 2012 05:47:47 +0000 (22:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 17 Mar 2012 05:49:32 +0000 (22:49 -0700)
commitf6aff0a4afce063be8e6b7342a9f1d1356f86396
treedc6dadf7713315f77d13d07a00fd971f314c4ae2
parent0acab3fd9b9726e865bdd6c82fb22963bb789f45
Input: kxtj9 - who_am_i check value and initial data rate fixes

Several fixes based on customer feedback:

* WHO_AM_I value has changed since preliminary parts used for initial
  testing;

* Output of le16_to_cpu must be saved to memory before shifting to
  preserve sign;

* Initial data rate was not extracted from data control register init.
  This was causing the initial data rate to be set to maximum until
  it was changed. To fix this problem, it made more sense to specify
  initial data rate and extract the register mask from that.

Signed-off-by: Chris Hudson <chudson@kionix.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/kxtj9.c
include/linux/input/kxtj9.h