summaryrefslogtreecommitdiffstats
path: root/include/linux/serio.h
diff options
context:
space:
mode:
authorDmitry Torokhov2017-03-23 18:02:50 +0100
committerDmitry Torokhov2017-03-23 22:49:37 +0100
commit996b9eedd061752bfa0f3a10381515d67db26b3e (patch)
treed8bc039cf364d2f5980a1ee9d8acc31eef82e706 /include/linux/serio.h
parentInput: qt1070 - add OF device ID table (diff)
downloadkernel-qcow2-linux-996b9eedd061752bfa0f3a10381515d67db26b3e.tar.gz
kernel-qcow2-linux-996b9eedd061752bfa0f3a10381515d67db26b3e.tar.xz
kernel-qcow2-linux-996b9eedd061752bfa0f3a10381515d67db26b3e.zip
Input: synaptics - do not mix logical and bitwise operations
Let's stop using !!x to reduce value of trackstick button expression to 0/1 and use shift instead. This removes the following sparse warning: CHECK drivers/input/mouse/synaptics.c drivers/input/mouse/synaptics.c:943:79: warning: dubious: !x | y Also, the bits we are testing are not capabilities, so lets drop "_CAP" suffix from macro names. Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/serio.h')
0 files changed, 0 insertions, 0 deletions