diff mbox

drm: panel: simple-panel: remove useless drm_mode_set_name

Message ID 1430404716-29620-1-git-send-email-boris.brezillon@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Boris BREZILLON April 30, 2015, 2:38 p.m. UTC
drm_display_mode_from_videomode() is already calling drm_mode_set_name() on
the provided mode.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Boris BREZILLON May 28, 2015, 2:26 p.m. UTC | #1
On Thu, 30 Apr 2015 16:38:36 +0200
Boris Brezillon <boris.brezillon@free-electrons.com> wrote:

> drm_display_mode_from_videomode() is already calling drm_mode_set_name() on
> the provided mode.

ping

> 
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 30904a9..d14b904 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -112,7 +112,6 @@ static int panel_simple_get_fixed_modes(struct panel_simple *panel)
>  		}
>  
>  		drm_display_mode_from_videomode(&vm, mode);
> -		drm_mode_set_name(mode);
>  
>  		drm_mode_probed_add(connector, mode);
>  		num++;
Thierry Reding April 18, 2016, 7:11 a.m. UTC | #2
On Thu, Apr 30, 2015 at 04:38:36PM +0200, Boris Brezillon wrote:
> drm_display_mode_from_videomode() is already calling drm_mode_set_name() on
> the provided mode.
> 
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 1 -
>  1 file changed, 1 deletion(-)

Applied, with a slightly reworded commit message.

Thierry
diff mbox

Patch

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 30904a9..d14b904 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -112,7 +112,6 @@  static int panel_simple_get_fixed_modes(struct panel_simple *panel)
 		}
 
 		drm_display_mode_from_videomode(&vm, mode);
-		drm_mode_set_name(mode);
 
 		drm_mode_probed_add(connector, mode);
 		num++;