[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1596415114-21175-4-git-send-email-tiantao6@hisilicon.com>
Date: Mon, 3 Aug 2020 08:38:34 +0800
From: Tian Tao <tiantao6@...ilicon.com>
To: <airlied@...ux.ie>, <daniel@...ll.ch>, <tzimmermann@...e.de>,
<kraxel@...hat.com>, <alexander.deucher@....com>,
<tglx@...utronix.de>, <dri-devel@...ts.freedesktop.org>,
<xinliang.liu@...aro.org>, <linux-kernel@...r.kernel.org>
CC: <linuxarm@...wei.com>
Subject: [PATCH drm/hisilicon v2 3/3] drm/hisilicon: Rename variables to represent the correct meaning
Rename plane to primary_plane in the structure hibmc_drm_private.
so it's clear which plane it represents.
Signed-off-by: Tian Tao <tiantao6@...ilicon.com>
---
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 +-
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c
index af24c72..d9062a3 100644
--- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c
+++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c
@@ -504,7 +504,7 @@ int hibmc_de_init(struct hibmc_drm_private *priv)
{
struct drm_device *dev = priv->dev;
struct drm_crtc *crtc = &priv->crtc;
- struct drm_plane *plane = &priv->plane;
+ struct drm_plane *plane = &priv->primary_plane;
int ret;
ret = drm_universal_plane_init(dev, plane, 1, &hibmc_plane_funcs,
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h
index 91ef15c..197485e 100644
--- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h
+++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h
@@ -28,7 +28,7 @@ struct hibmc_drm_private {
/* drm */
struct drm_device *dev;
- struct drm_plane plane;
+ struct drm_plane primary_plane;
struct drm_crtc crtc;
struct drm_encoder encoder;
struct drm_connector connector;
--
2.7.4
Powered by blists - more mailing lists