diff options
author | YueHaibing <[email protected]> | 2020-09-16 10:26:09 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2020-09-16 10:38:58 -0700 |
commit | d04afe14b23651e7a8bc89727a759e982a8458e4 (patch) | |
tree | 7a117f9b8d7e66e613459a8dc668508d6b51fe2b | |
parent | 925145f9e9eee8ac3b7d9eb53e0a9585ca671e1e (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
-rw-r--r-- | drivers/input/touchscreen/stmfts.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |