mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 02:20:40 +00:00
Input: zinitix - fix return type of zinitix_init_touch()
[ Upstream commit836f308cb5
] zinitix_init_touch() returns error code or 0 for success and therefore return type must be int, not bool. Fixes:26822652c8
("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>
This commit is contained in:
parent
0fda33ea89
commit
6fb1564f74
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue