Skip to content
Commit 82ba0d8b authored by Rui Teng's avatar Rui Teng Committed by Dmitry Torokhov
Browse files

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: default avatarRui Teng <rui.teng@linux.vnet.ibm.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 9e4cc255
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment