Commit d04afe14 authored by YueHaibing's avatar YueHaibing Committed by Dmitry Torokhov
Browse files

Input: stmfts - fix a & vs && typo



In stmfts_sysfs_hover_enable_write(), we should check value and
sdata->hover_enabled is all true.

Fixes: 78bcac7b ("Input: add support for the STMicroelectronics FingerTip touchscreen")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200916141941.16684-1-yuehaibing@huawei.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 925145f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)