On Tue, 2025-03-11 at 21:56 +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <[email protected]>
> 
> Stop spelling out each variant of the hook ("" vs. "_late" vs.
> "_early") and just say eg. "@thaw*" to indicate all of them.
> Avoids having to update the docs whenever we start/stop using
> one of the variants.
> 
> Reviewed-by: Rodrigo Vivi <[email protected]>
> Signed-off-by: Ville Syrjälä <[email protected]>

Reviewed-by: Jouni Högander <[email protected]>

> ---
>  drivers/gpu/drm/i915/i915_driver.c | 24 ++++++++++++------------
>  1 file changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_driver.c
> b/drivers/gpu/drm/i915/i915_driver.c
> index ce3cc93ea211..be232caef9df 100644
> --- a/drivers/gpu/drm/i915/i915_driver.c
> +++ b/drivers/gpu/drm/i915/i915_driver.c
> @@ -1664,18 +1664,18 @@ const struct dev_pm_ops i915_pm_ops = {
>  
>       /*
>        * S4 event handlers
> -      * @freeze, @freeze_late    : called (1) before creating the
> -      *                            hibernation image
> [PMSG_FREEZE] and
> -      *                            (2) after rebooting, before
> restoring
> -      *                            the image [PMSG_QUIESCE]
> -      * @thaw, @thaw_early       : called (1) after creating the
> hibernation
> -      *                            image, before writing it
> [PMSG_THAW]
> -      *                            and (2) after failing to
> create or
> -      *                            restore the image
> [PMSG_RECOVER]
> -      * @poweroff, @poweroff_late: called after writing the
> hibernation
> -      *                            image, before rebooting
> [PMSG_HIBERNATE]
> -      * @restore, @restore_early : called after rebooting and
> restoring the
> -      *                            hibernation image
> [PMSG_RESTORE]
> +      * @freeze*   : called (1) before creating the
> +      *              hibernation image [PMSG_FREEZE] and
> +      *              (2) after rebooting, before restoring
> +      *              the image [PMSG_QUIESCE]
> +      * @thaw*     : called (1) after creating the hibernation
> +      *              image, before writing it [PMSG_THAW]
> +      *              and (2) after failing to create or
> +      *              restore the image [PMSG_RECOVER]
> +      * @poweroff* : called after writing the hibernation
> +      *              image, before rebooting [PMSG_HIBERNATE]
> +      * @restore*  : called after rebooting and restoring the
> +      *              hibernation image [PMSG_RESTORE]
>        */
>       .freeze = i915_pm_freeze,
>       .freeze_late = i915_pm_freeze_late,

Reply via email to