summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2016-10-21 19:42:30 +0300
committerRob Clark <robdclark@gmail.com>2016-11-27 19:23:10 +0300
commitd3937111cdaff792f8bb25574a0a9954f06284ca (patch)
tree47a5d5f36e381b0c3118d0e95bdd783309c44a81 /drivers/gpu/drm/msm
parent667ce33e57d0de4074a8fb62d24daeefd03f6333 (diff)
downloadlinux-d3937111cdaff792f8bb25574a0a9954f06284ca.tar.xz
drm/msm/mdp5: small rename
These are really plane-id's, not crtc-id's. Only connection to CRTCs is that they are used as primary-planes. Current name is just legacy from when we only supported RGB/primary planes. Lets pick a better name now. Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r--drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
index f4560878265e..f1288c7219a7 100644
--- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
+++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
@@ -323,7 +323,7 @@ static int modeset_init_intf(struct mdp5_kms *mdp5_kms, int intf_num)
static int modeset_init(struct mdp5_kms *mdp5_kms)
{
- static const enum mdp5_pipe crtcs[] = {
+ static const enum mdp5_pipe rgb_planes[] = {
SSPP_RGB0, SSPP_RGB1, SSPP_RGB2, SSPP_RGB3,
};
static const enum mdp5_pipe vig_planes[] = {
@@ -344,12 +344,12 @@ static int modeset_init(struct mdp5_kms *mdp5_kms)
struct drm_plane *plane;
struct drm_crtc *crtc;
- plane = mdp5_plane_init(dev, crtcs[i], true,
+ plane = mdp5_plane_init(dev, rgb_planes[i], true,
hw_cfg->pipe_rgb.base[i], hw_cfg->pipe_rgb.caps);
if (IS_ERR(plane)) {
ret = PTR_ERR(plane);
dev_err(dev->dev, "failed to construct plane for %s (%d)\n",
- pipe2name(crtcs[i]), ret);
+ pipe2name(rgb_planes[i]), ret);
goto fail;
}
@@ -357,7 +357,7 @@ static int modeset_init(struct mdp5_kms *mdp5_kms)
if (IS_ERR(crtc)) {
ret = PTR_ERR(crtc);
dev_err(dev->dev, "failed to construct crtc for %s (%d)\n",
- pipe2name(crtcs[i]), ret);
+ pipe2name(rgb_planes[i]), ret);
goto fail;
}
priv->crtcs[priv->num_crtcs++] = crtc;