Input: mousedev - fix implicit conversion warning
authorNick Desaulniers <nick.desaulniers@gmail.com>
Sun, 25 Jun 2017 05:50:12 +0000 (22:50 -0700)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 16:28:14 +0000 (02:28 +1000)
commit413370f1eea1d2b5831d8a044666230dec04b7c1
tree8543805597dc416f41589a294fcffa1139d1f4ae
parent0fc1e8c752ec5ae6bfcbacfb51804ac2e9f8bfb6
Input: mousedev - fix implicit conversion warning

commit dae1a432ab1fe79ae53129ededeaece35a2dc14d upstream.

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>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mousedev.c