Re: [PATCH] staging: ste_rmi4: avoid unused function warnings

2015-11-30 Thread Linus Walleij
On Fri, Nov 20, 2015 at 10:59 PM, Arnd Bergmann wrote: > 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

[PATCH] staging: ste_rmi4: avoid unused function warnings

2015-11-20 Thread Arnd Bergmann
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'