Input: elo - fix an error code in elo_connect()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 17 Feb 2021 04:29:05 +0000 (20:29 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 18 Feb 2021 22:39:42 +0000 (14:39 -0800)
commit0958351e93fa0ac142f6dd8bd844441594f30a57
tree829530a64e5e2fa8599a10525118c0d4d3adb54e
parentb0b7d2815839024e5181bd2572f5d8d4f65363b3
Input: elo - fix an error code in elo_connect()

If elo_setup_10() fails then this should return an error code instead
of success.

Fixes: fae3006e4b42 ("Input: elo - add support for non-pressure-sensitive touchscreens")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YBKFd5CvDu+jVmfW@mwanda
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elo.c