Input: libps2 - use u8 for byte data
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Jan 2018 18:58:48 +0000 (10:58 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Feb 2018 00:50:21 +0000 (16:50 -0800)
commitb28bad65c1fec47076ebee88b51b0dafa31f5065
treeac386beb534ad96de356ad25c16a0c201d67e977
parentd5e0d9187abd5e3ce23884c375c4b36f403e42be
Input: libps2 - use u8 for byte data

Instead of using unsigned char for the byte data switch to using u8. Also
use unsigned int for the command codes and timeouts, and have
ps2_handle_ack() and ps2_handle_response() return bool instead of int, as
they do not return error codes but rather signal whether a byte was handled
or not handled. ps2_is_keyboard_id() now returns bool as well.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/libps2.c
include/linux/libps2.h