[PATCH v2 14/26] drm: mediatek: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the 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

[PATCH v2 14/26] drm: mediatek: Remove #ifdef guards for PM related functions

2022-11-29 Thread Paul Cercueil
Use the 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