Re: [v3] wifi: brcmfmac: Remove #ifdef guards for PM related functions

From: Kalle Valo
Date: Thu Jul 28 2022 - 05:57:46 EST


Paul Cercueil <paul@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches