Input: psmouse - clean up code
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Mar 2017 23:28:48 +0000 (16:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Feb 2018 00:48:58 +0000 (16:48 -0800)
commitba667650c568d55f6b80be54951b098f86939f2d
tree31d33a3f7640d8d531d91a62904c4cb0b8774b5b
parent1ef8580539d0b9282b726a2c9b7aa25057040cfe
Input: psmouse - clean up code

- switch to using BIT() macros
- use u8 instead of unsigned char for byte data
- use input_set_capability() instead of manipulating capabilities bits
  directly
- use sign_extend32() when extracting wheel data.
- do not abuse -1 as error code, propagate errors from various calls.

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