armbian_build/patch/kernel/archive/sunxi-5.10/megous/input-cyttsp4-Fix-warnings.patch
The-going 7964a578f5
Patches megous 5.10 (#3293)
* Add a series of patches for sunxi 5.10

Patches from the repository
https://github.com/megous/linux branches of orange-pi-5.10

* Patches adapted to the kernel version v5.10.81

* Remove unnecessary patches 5.10.19-5.10.75

* Kernel switch tag=v5.10.81 for the current sunxi

* Adjust broken patches, build tested on sunxi and sunxi64

* Remove patch added by mistake

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-11-27 00:48:30 +01:00

48 lines
1.3 KiB
Diff

From 80d705c8bf74f1edf29d25aeb2bdcd82713d9d16 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Mon, 7 Oct 2019 06:22:56 +0200
Subject: [PATCH 081/351] input: cyttsp4: Fix warnings
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
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 da82911b8605..9d69bde42622 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -1446,6 +1446,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");
@@ -1461,6 +1462,7 @@ static int cyttsp4_set_power(struct cyttsp4* cd, int on)
return -ENOSYS;
}
+#endif
static int cyttsp4_core_sleep_(struct cyttsp4 *cd)
{
@@ -1729,12 +1731,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.34.0