]> git.baikalelectronics.ru Git - kernel.git/commit
Input: st-keyscan - fix 'defined but not used' compiler warnings
authorTobias Klauser <tklauser@distanz.ch>
Tue, 8 Jul 2014 22:18:07 +0000 (15:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Jul 2014 17:18:55 +0000 (10:18 -0700)
commitdd159fc12a2c7463317a9b79ca5a9cf96b4e45fd
treec6832b1b99f77e7183c7a5642661800742799240
parent0a823adddfd7a2a1c58d8c06e234c674dcd7d2a6
Input: st-keyscan - fix 'defined but not used' compiler warnings

Add #ifdef CONFIG_PM_SLEEP around keyscan_supend() and keyscan_resume() to
fix the following compiler warnings occuring if CONFIG_PM_SLEEP is unset:

  + /scratch/kisskb/src/drivers/input/keyboard/st-keyscan.c: warning: 'keyscan_resume' defined but not used [-Wunused-function]:  => 235:12
  + /scratch/kisskb/src/drivers/input/keyboard/st-keyscan.c: warning: 'keyscan_suspend' defined but not used [-Wunused-function]:  => 218:12

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lkml.org/lkml/2014/7/8/109
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/st-keyscan.c