Input: raydium_i2c_ts - fix error codes in raydium_i2c_boot_trigger()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Mar 2020 19:50:51 +0000 (11:50 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Mar 2020 22:37:56 +0000 (14:37 -0800)
commit32cf3a610c35cb21e3157f4bbf29d89960e30a36
treef1d6e373b883b8bfaf75460749bbc21fd6912b63
parent3dbae15538972c9e1578cb216964c2840361a538
Input: raydium_i2c_ts - fix error codes in raydium_i2c_boot_trigger()

These functions are supposed to return negative error codes but instead
it returns true on failure and false on success.  The error codes are
eventually propagated back to user space.

Fixes: 48a2b783483b ("Input: add Raydium I2C touchscreen driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200303101306.4potflz7na2nn3od@kili.mountain
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/raydium_i2c_ts.c