提交 9b3bc483 编写于 作者: D Dmitry Torokhov 提交者: Zheng Zengkai

Input: zinitix - fix return type of zinitix_init_touch()

stable inclusion
from stable-5.10.20
commit 6fb1564f74fbd9e711a8ad0083d909078b046457
bugzilla: 50608

--------------------------------

[ Upstream commit 836f308c ]

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

Fixes: 26822652 ("Input: add zinitix touchscreen driver")
Reported-by: Nkernel test robot <lkp@intel.com>
Reported-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/YC8z2bXc3Oy8pABa@google.comSigned-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 97753be6
......@@ -190,7 +190,7 @@ static int zinitix_write_cmd(struct i2c_client *client, u16 reg)
return 0;
}
static bool zinitix_init_touch(struct bt541_ts_data *bt541)
static int zinitix_init_touch(struct bt541_ts_data *bt541)
{
struct i2c_client *client = bt541->client;
int i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册