Input: mousedev - fix implicit conversion warning
authorNick Desaulniers <nick.desaulniers@gmail.com>
Sun, 25 Jun 2017 05:50:12 +0000 (22:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 25 Jul 2017 20:54:31 +0000 (13:54 -0700)
commitdae1a432ab1fe79ae53129ededeaece35a2dc14d
tree970169d8f4593f98400ad92ce967a7fdb8bd9800
parent3dabc19acf79fa77e3a59a43b764b24d5be453be
Input: mousedev - fix implicit conversion warning

Clang warns:

drivers/input/mousedev.c:653:63: error: implicit conversion from 'int'
to 'signed char' changes value from 200 to -56
[-Wconstant-conversion]
  client->ps2[1] = 0x60; client->ps2[2] = 3; client->ps2[3] = 200;
                                                            ~ ^~~
As the PS2 data is really a stream of bytes, let's switch to using u8 type
for it, which silences this warning.

Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mousedev.c