[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200916141941.16684-1-yuehaibing@huawei.com>
Date: Wed, 16 Sep 2020 22:19:41 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <dmitry.torokhov@...il.com>, <mcoquelin.stm32@...il.com>,
<alexandre.torgue@...com>, <andi@...zian.org>,
<javier@....samsung.com>, <robh@...nel.org>
CC: <linux-input@...r.kernel.org>,
<linux-stm32@...md-mailman.stormreply.com>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] 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@...wei.com>
---
drivers/input/touchscreen/stmfts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c
index df946869d4cd..9a64e1dbc04a 100644
--- 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)
--
2.17.1
Powered by blists - more mailing lists