Skip to contentSkip to conversation

Input: zinitix - fix return type of zinitix_init_touch()

PATCH New Dmitry Torokhov 1 participant 1 message Feb 19, 2021

Subsystems (2)
lore
Share & tools
lore

Dmitry Torokhov

author maintainer
#0 lore raw

PATCH 1/1 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")
---
 drivers/input/touchscreen/zinitix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/zinitix.c +1 -1
index f64d88170fac..3b636beb583c 100644
@@ -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;
Signature · 5 lines
2.30.0.617.g56c4b15f3c-goog


-- 
Dmitry