Skip to content

Commit b205eef

Browse files
YueHaibinggregkh
authored andcommitted
Input: stmfts - fix a & vs && typo
[ Upstream commit d04afe1 ] In stmfts_sysfs_hover_enable_write(), we should check value and sdata->hover_enabled is all true. Fixes: 78bcac7 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 81e5e2c commit b205eef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/touchscreen/stmfts.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ static ssize_t stmfts_sysfs_hover_enable_write(struct device *dev,
479479

480480
mutex_lock(&sdata->mutex);
481481

482-
if (value & sdata->hover_enabled)
482+
if (value && sdata->hover_enabled)
483483
goto out;
484484

485485
if (sdata->running)

0 commit comments

Comments
 (0)