diff mbox series

[1/2] drm/mcde: Rename flow function

Message ID 20200728214319.143213-1-linus.walleij@linaro.org (mailing list archive)
State New, archived
Headers show
Series [1/2] drm/mcde: Rename flow function | expand

Commit Message

Linus Walleij July 28, 2020, 9:43 p.m. UTC
The function mcde_display_send_one_frame() has a historical
name that stems from being implemented when the driver
only supported single frame updates.

Rename it mcde_start_flow() so that it reflects the current
usage.

Cc: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/mcde/mcde_display.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stephan Gerhold July 29, 2020, 8:21 a.m. UTC | #1
On Tue, Jul 28, 2020 at 11:43:18PM +0200, Linus Walleij wrote:
> The function mcde_display_send_one_frame() has a historical
> name that stems from being implemented when the driver
> only supported single frame updates.
> 
> Rename it mcde_start_flow() so that it reflects the current
> usage.
> 
> Cc: Stephan Gerhold <stephan@gerhold.net>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Reviewed-by: Stephan Gerhold <stephan@gerhold.net>

> ---
>  drivers/gpu/drm/mcde/mcde_display.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/mcde/mcde_display.c b/drivers/gpu/drm/mcde/mcde_display.c
> index 1d8ea8830a17..a99cc3fd5ef4 100644
> --- a/drivers/gpu/drm/mcde/mcde_display.c
> +++ b/drivers/gpu/drm/mcde/mcde_display.c
> @@ -994,7 +994,7 @@ static void mcde_display_disable(struct drm_simple_display_pipe *pipe)
>  	dev_info(drm->dev, "MCDE display is disabled\n");
>  }
>  
> -static void mcde_display_send_one_frame(struct mcde *mcde)
> +static void mcde_start_flow(struct mcde *mcde)
>  {
>  	/* Request a TE ACK */
>  	if (mcde->te_sync)
> @@ -1092,7 +1092,7 @@ static void mcde_display_update(struct drm_simple_display_pipe *pipe,
>  			 * is not active yet.
>  			 */
>  			if (mcde->flow_active == 0)
> -				mcde_display_send_one_frame(mcde);
> +				mcde_start_flow(mcde);
>  		}
>  		dev_info_once(mcde->dev, "sent first display update\n");
>  	} else {
> -- 
> 2.26.2
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/mcde/mcde_display.c b/drivers/gpu/drm/mcde/mcde_display.c
index 1d8ea8830a17..a99cc3fd5ef4 100644
--- a/drivers/gpu/drm/mcde/mcde_display.c
+++ b/drivers/gpu/drm/mcde/mcde_display.c
@@ -994,7 +994,7 @@  static void mcde_display_disable(struct drm_simple_display_pipe *pipe)
 	dev_info(drm->dev, "MCDE display is disabled\n");
 }
 
-static void mcde_display_send_one_frame(struct mcde *mcde)
+static void mcde_start_flow(struct mcde *mcde)
 {
 	/* Request a TE ACK */
 	if (mcde->te_sync)
@@ -1092,7 +1092,7 @@  static void mcde_display_update(struct drm_simple_display_pipe *pipe,
 			 * is not active yet.
 			 */
 			if (mcde->flow_active == 0)
-				mcde_display_send_one_frame(mcde);
+				mcde_start_flow(mcde);
 		}
 		dev_info_once(mcde->dev, "sent first display update\n");
 	} else {