OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a9478b
)
goodix_ta: respect capacitive keys state
author
dianlujitao
<dianlujitao@lineageos.org>
Fri, 2 Feb 2018 09:31:04 +0000
(17:31 +0800)
committer
Arian
<arian.kulmer@web.de>
Tue, 19 Nov 2019 15:24:31 +0000
(16:24 +0100)
* Only report key event when capacitive keys enabled
Change-Id: Id30ba1fd7a589b2fce7bd3d2f433a6b1d756b37d
drivers/input/fingerprint/goodix_ta/gf_spi.c
patch
|
blob
|
history
diff --git
a/drivers/input/fingerprint/goodix_ta/gf_spi.c
b/drivers/input/fingerprint/goodix_ta/gf_spi.c
index
537a6c7
..
5ab80b6
100644
(file)
--- a/
drivers/input/fingerprint/goodix_ta/gf_spi.c
+++ b/
drivers/input/fingerprint/goodix_ta/gf_spi.c
@@
-79,6
+79,8
@@
static void gf_kernel_key_input(struct gf_device *gf_dev, struct gf_key *gf_key)
}
}
+extern bool capacitive_keys_enabled;
+
static long gf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
struct gf_device *gf_dev = &gf;
@@
-104,8
+106,8
@@
static long gf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
rc = -EFAULT;
break;
}
-
- gf_kernel_key_input(gf_dev, &gf_key);
+ if (capacitive_keys_enabled)
+
gf_kernel_key_input(gf_dev, &gf_key);
break;
default:
pr_debug("%s: unsupport cmd:0x%x\n", __func__, cmd);