]> git.baikalelectronics.ru Git - kernel.git/commit
Input: twl4030 - fix unsafe macro definition
authorRui Teng <rui.teng@linux.vnet.ibm.com>
Tue, 26 Apr 2016 16:45:13 +0000 (09:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 29 Apr 2016 20:59:00 +0000 (13:59 -0700)
commitd890deb2de9dbc2ca76ead66ce218a39dc0f2ea7
tree43097efd729bc829a33fa8c7170be52d3513b6e9
parentf6a6505369da11f1e09f547ff16d1d3c33ec14a6
Input: twl4030 - fix unsafe macro definition

The bitwise shift operator has lower priority than plus operator. So the
values on macros should be enclosed in parentheses.

For example, "(1 << 4 + 1)" means "(1 << (4 + 1))", but it is not expected
by the macros.

And also fix other two coding style problems reported by
scripts/checkpatch.pl.

Signed-off-by: Rui Teng <rui.teng@linux.vnet.ibm.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/twl4030_keypad.c