From: Dmitry Torokhov Date: Fri, 19 Feb 2021 18:36:48 +0000 (-0800) Subject: Input: zinitix - fix return type of zinitix_init_touch() X-Git-Tag: v6.6.17~3754^2~122^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=836f308cb5c72d48e2dff8d3e64c3adb94f4710d;p=platform%2Fkernel%2Flinux-rpi.git Input: zinitix - fix return type of zinitix_init_touch() 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 Reported-by: Jiapeng Chong Link: https://lore.kernel.org/r/YC8z2bXc3Oy8pABa@google.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/zinitix.c b/drivers/input/touchscreen/zinitix.c index f64d881..3b636be 100644 --- a/drivers/input/touchscreen/zinitix.c +++ b/drivers/input/touchscreen/zinitix.c @@ -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;