]> git.baikalelectronics.ru Git - kernel.git/commit
Input: bfin_rotary - mark suspend and resume code as __maybe_unused
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Feb 2015 06:05:51 +0000 (22:05 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 16 Feb 2015 00:06:26 +0000 (16:06 -0800)
commitccc94cee60e7d2455c52686ada5da124b0b7afe8
treeae4892662d24feabfc6dd25dbe2af4fad5182b41
parent0b85484e51f0c43f870b8e12f43dd577b3cc2e6c
Input: bfin_rotary - mark suspend and resume code as __maybe_unused

Instead of using #ifdef to guard potentially unused suspend and resume code
let's mark them as __maybe_unused so they still get discarded if they are
not used but we do not get warning. This allows for better compile coverage.

Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/bfin_rotary.c