Input: raydium_i2c_ts - fix error codes in raydium_i2c_boot_trigger()
commitdcd94e14125c7dc5a3be95c64f0c69b0a09c76d7
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Mar 2020 19:50:51 +0000 (6 11:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:00:02 +0000 (1 11:00 +0200)
tree131b2b3fb7679e3efd4496464a299c6e9665f530
parent1f672253e6ecc6fb78806336a05050b1fb4f5e94
Input: raydium_i2c_ts - fix error codes in raydium_i2c_boot_trigger()

commit 32cf3a610c35cb21e3157f4bbf29d89960e30a36 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/raydium_i2c_ts.c