From 3aadf45ed12ed73f24f3d45a19a0bdae3d6b6c5e Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 21 Oct 2023 12:48:00 +0200 Subject: [PATCH] input: touchscreen: st: Fix strict-prototypes error Change-Id: I0975813df12ad5e1920e67b33d7bd1c4aa5def11 --- drivers/input/touchscreen/st/fts_lib/ftsIO.c | 4 ++-- drivers/input/touchscreen/st/fts_lib/ftsTime.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/st/fts_lib/ftsIO.c b/drivers/input/touchscreen/st/fts_lib/ftsIO.c index 12f02d9424ff..07baad393df8 100644 --- a/drivers/input/touchscreen/st/fts_lib/ftsIO.c +++ b/drivers/input/touchscreen/st/fts_lib/ftsIO.c @@ -84,7 +84,7 @@ int openChannel(struct i2c_client *clt) return OK; } -struct device *getDev() +struct device *getDev(void) { if (client != NULL) return &(client->dev); @@ -92,7 +92,7 @@ struct device *getDev() return NULL; } -struct i2c_client *getClient() +struct i2c_client *getClient(void) { if (client != NULL) return client; diff --git a/drivers/input/touchscreen/st/fts_lib/ftsTime.c b/drivers/input/touchscreen/st/fts_lib/ftsTime.c index 07d1bf5dba8b..6d21fc857057 100644 --- a/drivers/input/touchscreen/st/fts_lib/ftsTime.c +++ b/drivers/input/touchscreen/st/fts_lib/ftsTime.c @@ -92,7 +92,7 @@ int elapsedNanosecond(struct StopWatch *w) return result; } -char *timestamp() +char *timestamp(void) { char *result = NULL;