]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite00f006cf747e000c3d6a2ffa598b8567cddb471
tree9db0626561ff108bc4ec3d012d6dbf6c2c3eb40d
parent6ca2d5a4c64d7265a0433d5a542a70e3d89dbf7e
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