Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5ea1492 authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman
Browse files

imx-drm: imx-drm-core: use the crtc drm device for vblank



There are a couple of ways to get at the drm_device for the vblank
operations.  One of them is via the private imxdrm structure, the
other is via the DRM crtc structure, which also stores a pointer.
Use the DRM method instead of our own method.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Tested-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 38dbfb59
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -142,19 +142,19 @@ EXPORT_SYMBOL_GPL(imx_drm_crtc_panel_format);


int imx_drm_crtc_vblank_get(struct imx_drm_crtc *imx_drm_crtc)
int imx_drm_crtc_vblank_get(struct imx_drm_crtc *imx_drm_crtc)
{
{
	return drm_vblank_get(imx_drm_crtc->imxdrm->drm, imx_drm_crtc->pipe);
	return drm_vblank_get(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe);
}
}
EXPORT_SYMBOL_GPL(imx_drm_crtc_vblank_get);
EXPORT_SYMBOL_GPL(imx_drm_crtc_vblank_get);


void imx_drm_crtc_vblank_put(struct imx_drm_crtc *imx_drm_crtc)
void imx_drm_crtc_vblank_put(struct imx_drm_crtc *imx_drm_crtc)
{
{
	drm_vblank_put(imx_drm_crtc->imxdrm->drm, imx_drm_crtc->pipe);
	drm_vblank_put(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe);
}
}
EXPORT_SYMBOL_GPL(imx_drm_crtc_vblank_put);
EXPORT_SYMBOL_GPL(imx_drm_crtc_vblank_put);


void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc)
void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc)
{
{
	drm_handle_vblank(imx_drm_crtc->imxdrm->drm, imx_drm_crtc->pipe);
	drm_handle_vblank(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe);
}
}
EXPORT_SYMBOL_GPL(imx_drm_handle_vblank);
EXPORT_SYMBOL_GPL(imx_drm_handle_vblank);