mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
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>
This commit is contained in:
parent
667ce33e57
commit
d3937111cd
1 changed files with 4 additions and 4 deletions
|
@ -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 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,
|
SSPP_RGB0, SSPP_RGB1, SSPP_RGB2, SSPP_RGB3,
|
||||||
};
|
};
|
||||||
static const enum mdp5_pipe vig_planes[] = {
|
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_plane *plane;
|
||||||
struct drm_crtc *crtc;
|
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);
|
hw_cfg->pipe_rgb.base[i], hw_cfg->pipe_rgb.caps);
|
||||||
if (IS_ERR(plane)) {
|
if (IS_ERR(plane)) {
|
||||||
ret = PTR_ERR(plane);
|
ret = PTR_ERR(plane);
|
||||||
dev_err(dev->dev, "failed to construct plane for %s (%d)\n",
|
dev_err(dev->dev, "failed to construct plane for %s (%d)\n",
|
||||||
pipe2name(crtcs[i]), ret);
|
pipe2name(rgb_planes[i]), ret);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -357,7 +357,7 @@ static int modeset_init(struct mdp5_kms *mdp5_kms)
|
||||||
if (IS_ERR(crtc)) {
|
if (IS_ERR(crtc)) {
|
||||||
ret = PTR_ERR(crtc);
|
ret = PTR_ERR(crtc);
|
||||||
dev_err(dev->dev, "failed to construct crtc for %s (%d)\n",
|
dev_err(dev->dev, "failed to construct crtc for %s (%d)\n",
|
||||||
pipe2name(crtcs[i]), ret);
|
pipe2name(rgb_planes[i]), ret);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
priv->crtcs[priv->num_crtcs++] = crtc;
|
priv->crtcs[priv->num_crtcs++] = crtc;
|
||||||
|
|
Loading…
Reference in a new issue