[PATCH v2 02/22] i2c: iproc: Remove #ifdef guards for PM related functions
Florian Fainelli
florian.fainelli at broadcom.com
Sat Jul 22 07:39:05 PDT 2023
On 7/22/2023 4:50 AM, Paul Cercueil wrote:
> Use the new 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: Paul Cercueil <paul at crapouillou.net>
> Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>
> Acked-by: Ray Jui <ray.jui at broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
--
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4221 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230722/4108bdd7/attachment-0001.p7s>
More information about the linux-arm-kernel
mailing list