diff options
author | Paul Cercueil <paul@crapouillou.net> | 2022-10-23 10:48:48 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-12-07 13:28:13 +0000 |
commit | 4d8a6ae23af64a37803c0d15922819d27b4b8b08 (patch) | |
tree | f06bcf19975103ef6c4eb7ceefaf078bb7d73492 /include/linux/mfd/stmfx.h | |
parent | 69bbab91835acb4d1f64b2f488b379116c1c49b5 (diff) |
mfd: stmfx: 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.
This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux/mfd/stmfx.h')
-rw-r--r-- | include/linux/mfd/stmfx.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mfd/stmfx.h b/include/linux/mfd/stmfx.h index 744dce63946e..967a2e486800 100644 --- a/include/linux/mfd/stmfx.h +++ b/include/linux/mfd/stmfx.h @@ -113,10 +113,8 @@ struct stmfx { struct irq_domain *irq_domain; struct mutex lock; /* IRQ bus lock */ u8 irq_src; -#ifdef CONFIG_PM u8 bkp_sysctrl; u8 bkp_irqoutpin; -#endif }; int stmfx_function_enable(struct stmfx *stmfx, u32 func); |