[PATCH 08/11] pwm: stm32-lp: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions
Jonathan Cameron
Jonathan.Cameron at Huawei.com
Wed Oct 11 04:23:18 PDT 2023
On Tue, 10 Oct 2023 09:51:09 +0200
Uwe Kleine-König <u.kleine-koenig at pengutronix.de> wrote:
> This macro has the advantage over SIMPLE_DEV_PM_OPS that we don't have to
> care about when the functions are actually used, so the corresponding
> __maybe_unused can be dropped.
>
> Also make use of pm_ptr() to discard all PM related stuff if CONFIG_PM
> isn't enabled.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>
More information about the linux-arm-kernel
mailing list