drm: rockchip: use crtc helper drm_crtc_from_index()
authorShawn Guo <[email protected]>
Thu, 29 Dec 2016 12:41:30 +0000 (20:41 +0800)
committerDaniel Vetter <[email protected]>
Fri, 30 Dec 2016 11:15:11 +0000 (12:15 +0100)
commit48df6336d770a5a1fcc83bef9f1d541600983b5f
treef124edb85c375279a41e87bd9ea415e3cc25b60a
parentac620ba3d09bc96eca203658ad2e145adf911ac3
drm: rockchip: use crtc helper drm_crtc_from_index()

Function rockchip_crtc_from_pipe() does the exactly same thing as what
crtc helper drm_crtc_from_index() provides.  Use the helper to save
some code.

Signed-off-by: Shawn Guo <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/rockchip_drm_drv.c