]> git.baikalelectronics.ru Git - kernel.git/commit
Input: add guarding parentheses to macros
authorSimon Budig <simon.budig@kernelconcepts.de>
Tue, 5 Jul 2011 02:56:01 +0000 (19:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Jul 2011 03:03:40 +0000 (20:03 -0700)
commit55d420d374a1193f86b10692d6efaa8bed994ce9
tree4d6ddf8d13638ea0cb8461b21c9b35860bf3037a
parentf9e4199ac505fd2103831500ed004fa5cadb9e70
Input: add guarding parentheses to macros

Put parentheses around macro argument uses. This avoids pitfalls
for the programmer, where the argument expansion does not give the
expected result, for example:

ioctl (fd, EVIOCGABS (have_mt ? ABS_MT_POSITION_X : ABS_X), &abs);

Signed-off-by: Simon Budig <simon.budig@kernelconcepts.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/input.h