Re: [PATCH 08/26] drm: atmel-hlcdc: Remove #ifdef guards for PM related functions

2022-11-10 Thread Claudiu.Beznea
On 07.11.2022 19:50, Paul Cercueil wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > 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 func

Re: [PATCH 08/26] drm: atmel-hlcdc: Remove #ifdef guards for PM related functions

2022-11-07 Thread Sam Ravnborg
On Mon, Nov 07, 2022 at 05:50:48PM +, Paul Cercueil wrote: > 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 dis

[PATCH 08/26] drm: atmel-hlcdc: Remove #ifdef guards for PM related functions

2022-11-07 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 al