Input: zinitix - fix return type of zinitix_init_touch()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 19 Feb 2021 18:36:48 +0000 (10:36 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:10 +0000 (11:38 +0100)
commit6fb1564f74fbd9e711a8ad0083d909078b046457
tree94bf19d83ef8e27e13448d2b8741dae02151efdf
parent0fda33ea8947421e4e4f6108e7c525b60d06fd50
Input: zinitix - fix return type of zinitix_init_touch()

[ Upstream commit 836f308cb5c72d48e2dff8d3e64c3adb94f4710d ]

zinitix_init_touch() returns error code or 0 for success and therefore
return type must be int, not bool.

Fixes: 26822652c85e ("Input: add zinitix touchscreen driver")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/YC8z2bXc3Oy8pABa@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/zinitix.c