projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
925145f
)
Input: stmfts - fix a & vs && typo
author
YueHaibing
<yuehaibing@huawei.com>
Wed, 16 Sep 2020 17:26:09 +0000
(10:26 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 16 Sep 2020 17:38:58 +0000
(10:38 -0700)
In stmfts_sysfs_hover_enable_write(), we should check value and
sdata->hover_enabled is all true.
Fixes:
78bcac7b2ae1
("Input: add support for the STMicroelectronics FingerTip touchscreen")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link:
https://lore.kernel.org/r/20200916141941.16684-1-yuehaibing@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/stmfts.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/stmfts.c
b/drivers/input/touchscreen/stmfts.c
index
df94686
..
9a64e1d
100644
(file)
--- a/
drivers/input/touchscreen/stmfts.c
+++ b/
drivers/input/touchscreen/stmfts.c
@@
-479,7
+479,7
@@
static ssize_t stmfts_sysfs_hover_enable_write(struct device *dev,
mutex_lock(&sdata->mutex);
- if (value & sdata->hover_enabled)
+ if (value &
&
sdata->hover_enabled)
goto out;
if (sdata->running)