Input: trackpoint - combine calls to ps2_command()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 5 Jan 2018 06:52:55 +0000 (22:52 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Feb 2018 00:51:32 +0000 (16:51 -0800)
commit3aceaa34d7723c2556555b05ad04a89ce2d66374
tree9db0626561ff108bc4ec3d012d6dbf6c2c3eb40d
parent29acc42e8e10a4721757af9ed8aec569d30ce39b
Input: trackpoint - combine calls to ps2_command()

We do not need to call ps2_command() several times in a row, transmitting
every byte as it were a command byte, we can often pack it all in a single
command.

Also, now that ps2_command() handles retransmission, we do not need to do
it ourselves in trackpoint_power_on_reset().

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