Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: stmfts - fix a & vs && typo

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>

authored by

YueHaibing and committed by
Dmitry Torokhov
d04afe14 925145f9

+1 -1
+1 -1
drivers/input/touchscreen/stmfts.c
··· 479 479 480 480 mutex_lock(&sdata->mutex); 481 481 482 - if (value & sdata->hover_enabled) 482 + if (value && sdata->hover_enabled) 483 483 goto out; 484 484 485 485 if (sdata->running)