Files
linux/drivers
Arnd Bergmann 57aafe5c37 staging: ste_rmi4: avoid unused function warnings
commit 9045a4a7e686a6316129d6d0b21b4fe2520968e4 upstream.

The rmi4 touchscreen driver encloses the power-management
functions in #ifdef CONFIG_PM, but the smtcfb_pci_suspend/resume
functions are only really used when CONFIG_PM_SLEEP is also
set, as a frequent gcc warning shows:

ste_rmi4/synaptics_i2c_rmi4.c:1050:12: warning: 'synaptics_rmi4_suspend' defined but not used
ste_rmi4/synaptics_i2c_rmi4.c:1084:12: warning: 'synaptics_rmi4_resume' defined but not used

This changes the driver to remove the #ifdef and instead mark
the functions as __maybe_unused, which is a nicer anyway, as it
provides build testing for all the code in all configurations
and is harder to get wrong.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:45 +01:00
..
2017-12-16 10:33:55 +01:00
2017-12-16 10:33:53 +01:00
2017-11-30 08:37:27 +00:00
2018-02-25 11:03:42 +01:00
2018-02-25 11:03:44 +01:00
2018-01-02 20:33:20 +01:00
2018-02-25 11:03:44 +01:00
2018-02-25 11:03:40 +01:00
2018-02-25 11:03:41 +01:00