projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04230f4
)
HID: hid-multitouch: Use true and false for boolean values
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Tue, 6 Mar 2018 00:10:46 +0000
(18:10 -0600)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 6 Mar 2018 14:19:13 +0000
(15:19 +0100)
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-multitouch.c
b/drivers/hid/hid-multitouch.c
index
3b4739b
..
d378057
100644
(file)
--- a/
drivers/hid/hid-multitouch.c
+++ b/
drivers/hid/hid-multitouch.c
@@
-722,7
+722,7
@@
static void mt_complete_slot(struct mt_device *td, struct input_dev *input)
}
if (!(td->mtclass.quirks & MT_QUIRK_CONFIDENCE))
- s->confidence_state =
1
;
+ s->confidence_state =
true
;
active = (s->touch_state || s->inrange_state) &&
s->confidence_state;