Re: [v3] wifi: brcmfmac: Remove #ifdef guards for PM related functions
From: Kalle Valo <kvalo@kernel.org>
Date: 2022-07-28 09:57:46
Also in:
linux-wireless, lkml
From: Kalle Valo <kvalo@kernel.org>
Date: 2022-07-28 09:57:46
Also in:
linux-wireless, lkml
Paul Cercueil [off-list ref] wrote:
Use the new DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. Some other functions not directly called by the .suspend/.resume callbacks, but still related to PM were also taken outside #ifdef guards. The advantage is then that these functions are now always compiled independently of any Kconfig option, and thanks to that bugs and regressions are easier to catch. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Patch applied to wireless-next.git, thanks. 02a186f1e96b wifi: brcmfmac: Remove #ifdef guards for PM related functions -- https://patchwork.kernel.org/project/linux-wireless/patch/20220627193701.31074-1-paul@crapouillou.net/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches