Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1639949 > unrolled thread

[PATCH v2 6/7] drm/atmel-hlcdc: Drop custom encoder cleanup func.

Started byEric Anholt <eric@anholt.net>
First post2017-05-11 20:40 +0200
Last post2017-05-11 21:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 6/7] drm/atmel-hlcdc: Drop custom encoder cleanup func. Eric Anholt <eric@anholt.net> - 2017-05-11 20:40 +0200
    Re: [PATCH v2 6/7] drm/atmel-hlcdc: Drop custom encoder cleanup  func. Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-05-11 21:20 +0200

#1639949 — [PATCH v2 6/7] drm/atmel-hlcdc: Drop custom encoder cleanup func.

FromEric Anholt <eric@anholt.net>
Date2017-05-11 20:40 +0200
Subject[PATCH v2 6/7] drm/atmel-hlcdc: Drop custom encoder cleanup func.
Message-ID<tG1ah-1ut-5@gated-at.bofh.it>
drm_encoder_cleanup() finishes with memsetting it to 0, already.

Signed-off-by: Eric Anholt <eric@anholt.net>
---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
index 65a3bd7a0c00..4b2cfbd0d43f 100644
--- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
+++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
@@ -83,14 +83,8 @@ static const struct drm_encoder_helper_funcs atmel_hlcdc_panel_encoder_helper_fu
 	.enable = atmel_hlcdc_rgb_encoder_enable,
 };
 
-static void atmel_hlcdc_rgb_encoder_destroy(struct drm_encoder *encoder)
-{
-	drm_encoder_cleanup(encoder);
-	memset(encoder, 0, sizeof(*encoder));
-}
-
 static const struct drm_encoder_funcs atmel_hlcdc_panel_encoder_funcs = {
-	.destroy = atmel_hlcdc_rgb_encoder_destroy,
+	.destroy = drm_encoder_cleanup,
 };
 
 static int atmel_hlcdc_panel_get_modes(struct drm_connector *connector)
-- 
2.11.0

[toc] | [next] | [standalone]


#1639974 — Re: [PATCH v2 6/7] drm/atmel-hlcdc: Drop custom encoder cleanup func.

FromBoris Brezillon <boris.brezillon@free-electrons.com>
Date2017-05-11 21:20 +0200
SubjectRe: [PATCH v2 6/7] drm/atmel-hlcdc: Drop custom encoder cleanup func.
Message-ID<tG1MZ-1Xg-13@gated-at.bofh.it>
In reply to#1639949
On Thu, 11 May 2017 11:31:27 -0700
Eric Anholt <eric@anholt.net> wrote:

> drm_encoder_cleanup() finishes with memsetting it to 0, already.
> 
> Signed-off-by: Eric Anholt <eric@anholt.net>

Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>

> ---
>  drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
> index 65a3bd7a0c00..4b2cfbd0d43f 100644
> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
> @@ -83,14 +83,8 @@ static const struct drm_encoder_helper_funcs atmel_hlcdc_panel_encoder_helper_fu
>  	.enable = atmel_hlcdc_rgb_encoder_enable,
>  };
>  
> -static void atmel_hlcdc_rgb_encoder_destroy(struct drm_encoder *encoder)
> -{
> -	drm_encoder_cleanup(encoder);
> -	memset(encoder, 0, sizeof(*encoder));
> -}
> -
>  static const struct drm_encoder_funcs atmel_hlcdc_panel_encoder_funcs = {
> -	.destroy = atmel_hlcdc_rgb_encoder_destroy,
> +	.destroy = drm_encoder_cleanup,
>  };
>  
>  static int atmel_hlcdc_panel_get_modes(struct drm_connector *connector)

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web