Commit 9254cd1d authored by Tian Tao's avatar Tian Tao

drm/hisilicon: Use drm_crtc_mask()

Use drm_crtc_mask() where appropriate.
Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1610335818-32895-1-git-send-email-tiantao6@hisilicon.com
parent b6755423
...@@ -89,6 +89,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv) ...@@ -89,6 +89,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv)
struct drm_device *dev = &priv->dev; struct drm_device *dev = &priv->dev;
struct hibmc_connector *hibmc_connector = &priv->connector; struct hibmc_connector *hibmc_connector = &priv->connector;
struct drm_encoder *encoder = &priv->encoder; struct drm_encoder *encoder = &priv->encoder;
struct drm_crtc *crtc = &priv->crtc;
struct drm_connector *connector = &hibmc_connector->base; struct drm_connector *connector = &hibmc_connector->base;
int ret; int ret;
...@@ -98,7 +99,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv) ...@@ -98,7 +99,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv)
return ret; return ret;
} }
encoder->possible_crtcs = 0x1; encoder->possible_crtcs = drm_crtc_mask(crtc);
ret = drm_simple_encoder_init(dev, encoder, DRM_MODE_ENCODER_DAC); ret = drm_simple_encoder_init(dev, encoder, DRM_MODE_ENCODER_DAC);
if (ret) { if (ret) {
drm_err(dev, "failed to init encoder: %d\n", ret); drm_err(dev, "failed to init encoder: %d\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment