drm: nouveau: use crtc helper drm_crtc_from_index()
authorShawn Guo <shawn.guo@linaro.org>
Mon, 9 Jan 2017 11:25:43 +0000 (19:25 +0800)
committerSean Paul <seanpaul@chromium.org>
Wed, 18 Jan 2017 14:21:06 +0000 (09:21 -0500)
commitea441bd33f93aa7f6f404c8877e6d3313a4dbdbe
tree844da6415ec3a69915183dd4801d486510808ecc
parentffec8925836caf1e91dce9c37c322c363eef58b3
drm: nouveau: use crtc helper drm_crtc_from_index()

Use drm_crtc_from_index() to find drm_crtc for given index.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1483961145-18453-5-git-send-email-shawnguo@kernel.org
drivers/gpu/drm/nouveau/nouveau_display.c