[PATCH 03/16] gpio: bt8xx: Use modern PM macros

Michael Büsch mb at bues.ch
Wed Aug 20 10:08:42 PDT 2025


On Wed, 20 Aug 2025 23:40:24 +0800
Jisheng Zhang <jszhang at kernel.org> wrote:

> Use the modern PM macros for the suspend and resume functions to be
> automatically dropped by the compiler when CONFIG_PM or
> CONFIG_PM_SLEEP are 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: Jisheng Zhang <jszhang at kernel.org>

Acked-by: Michael Büsch <m at bues.ch>

-- 
Michael Büsch
https://bues.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250820/36affa76/attachment.sig>


More information about the linux-arm-kernel mailing list