Input: psmouse - expose drift duration for IBM trackpoints
authorhaarp <main.haarp@googlemail.com>
Wed, 17 Dec 2014 23:22:08 +0000 (15:22 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 17 Dec 2014 23:46:51 +0000 (15:46 -0800)
commit2ba353204779c81d09bb03051d8a7a4b842f9ad3
tree7a49295d87b7d7e337d32579154b9c0a42d58860
parent7c12a5b19e13ee78c3acb759f264df87ad984ffa
Input: psmouse - expose drift duration for IBM trackpoints

IBM Trackpoints have a feature to compensate for drift by recalibrating
themselves periodically. By default, if for 0.5 seconds there is no change
in position, it's used as the new zero. This duration is too low. Often,
the calibration happens when the trackpoint is in fact being used.

IBM's Trackpoint Engineering Specifications show a configuration register
that allows changing this duration, rstdft1.

Expose it via sysfs among the other settings.

Signed-off-by: Mike Murdoch <main.haarp@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/trackpoint.c
drivers/input/mouse/trackpoint.h