| Date | Mon, 22 Aug 2022 09:44:07 +0000 | From | Charles Keepax <> | Subject | Re: [PATCH v2 21/30] mfd: arizona: Remove #ifdef guards for PM related functions |
| |
On Mon, Aug 08, 2022 at 07:40:58PM +0200, Paul Cercueil wrote: > Use the new EXPORT_GPL_DEV_PM_OPS() and pm_ptr() macros to handle the PM > callbacks. > > These macros allow the PM functions to be automatically dropped by the > compiler when CONFIG_PM 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> > ---
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks, Charles
|