armbian_build/patch/kernel/archive/sunxi-6.6/patches.megous/input-cyttsp4-Fix-warnings.patch
The-going 25b0741531 sunxi-6.6: megous patches: revert commit changes e103e2e1da
Undo changes that are made massively and create a lot of noise.
e103e2e1da
2025-01-19 20:22:11 +01:00

48 lines
1.3 KiB
Diff

From a9f79decaca3519870010e4a26a9fdc1beac17f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Mon, 7 Oct 2019 06:22:56 +0200
Subject: input: cyttsp4: Fix warnings
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/input/touchscreen/cyttsp4_core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index 70bc1d2d0619..b8f100d7bbea 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -1460,6 +1460,7 @@ static void cyttsp4_watchdog_work(struct work_struct *work)
return;
}
+#if 0
static int cyttsp4_set_power(struct cyttsp4* cd, int on)
{
dev_dbg(cd->dev, "Power %s\n", on ? "up" : "down");
@@ -1475,6 +1476,7 @@ static int cyttsp4_set_power(struct cyttsp4* cd, int on)
return -ENOSYS;
}
+#endif
static int cyttsp4_core_sleep_(struct cyttsp4 *cd)
{
@@ -1742,12 +1744,12 @@ static int cyttsp4_core_sleep(struct cyttsp4 *cd)
static int cyttsp4_core_wake_(struct cyttsp4 *cd)
{
+#if 0
struct device *dev = cd->dev;
int rc;
u8 mode;
int t;
-#if 0
/* Already woken? */
mutex_lock(&cd->system_lock);
if (cd->sleep_state == SS_SLEEP_OFF) {
--
2.35.3