]> git.karo-electronics.de Git - linux-beck.git/commit
Input: trackpoint - Optimize trackpoint init to use power-on reset
authorShawn Nematbakhsh <shawnn@chromium.org>
Mon, 15 Apr 2013 20:49:34 +0000 (13:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 19 Apr 2013 16:05:44 +0000 (09:05 -0700)
commit0c6a61657da78098472fd0eb71cc01f2387fa1bb
treeb4d9cd085eaae625a3231edd1c5e64a9370ecd17
parente07a8943b809730220a4aff911d2bce6991828f1
Input: trackpoint - Optimize trackpoint init to use power-on reset

The trackpoint driver sets various parameter default values, all of
which happen to be power-on defaults (Source: IBM TrackPoint Engineering
Specification, Version 4.0. Also confirmed by empirical data).

By sending the power-on reset command to reset all parameters to
power-on state, we can skip the lengthy process of programming all
parameters. In testing, ~2.5 secs of time writing parameters was reduced
to .35 seconds waiting for power-on reset to complete.

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/trackpoint.c
drivers/input/mouse/trackpoint.h