diff options
author | 2022-06-27 20:37:01 +0100 | |
---|---|---|
committer | 2022-07-28 12:57:29 +0300 | |
commit | 02a186f1e96bfca8fd19862dad14ea011712ce9d (patch) | |
tree | 03f881fa71bffe2ac6fd8efb725da45351c6ffc6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | wifi: brcmfmac: use strreplace() in brcmf_of_probe() (diff) | |
download | linux-dev-02a186f1e96bfca8fd19862dad14ea011712ce9d.tar.xz linux-dev-02a186f1e96bfca8fd19862dad14ea011712ce9d.zip |
wifi: brcmfmac: Remove #ifdef guards for PM related functions
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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220627193701.31074-1-paul@crapouillou.net
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions