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

Commit f40f917a authored by Carlos Palminha's avatar Carlos Palminha Committed by Daniel Vetter
Browse files

drm/virtio: removed optional dummy crtc mode_fixup function.



This patch set nukes all the dummy crtc mode_fixup implementations.
(made on top of Daniel topic/drm-misc branch)

Signed-off-by: default avatarCarlos Palminha <palminha@synopsys.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/ae865f0deca4e64a0f47f2d2d14b54ff00c0672e.1455630967.git.palminha@synopsys.com
parent c57d860f
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -237,13 +237,6 @@ virtio_gpu_framebuffer_init(struct drm_device *dev,
	return 0;
	return 0;
}
}


static bool virtio_gpu_crtc_mode_fixup(struct drm_crtc *crtc,
				       const struct drm_display_mode *mode,
				       struct drm_display_mode *adjusted_mode)
{
	return true;
}

static void virtio_gpu_crtc_mode_set_nofb(struct drm_crtc *crtc)
static void virtio_gpu_crtc_mode_set_nofb(struct drm_crtc *crtc)
{
{
	struct drm_device *dev = crtc->dev;
	struct drm_device *dev = crtc->dev;
@@ -277,7 +270,6 @@ static int virtio_gpu_crtc_atomic_check(struct drm_crtc *crtc,
static const struct drm_crtc_helper_funcs virtio_gpu_crtc_helper_funcs = {
static const struct drm_crtc_helper_funcs virtio_gpu_crtc_helper_funcs = {
	.enable        = virtio_gpu_crtc_enable,
	.enable        = virtio_gpu_crtc_enable,
	.disable       = virtio_gpu_crtc_disable,
	.disable       = virtio_gpu_crtc_disable,
	.mode_fixup    = virtio_gpu_crtc_mode_fixup,
	.mode_set_nofb = virtio_gpu_crtc_mode_set_nofb,
	.mode_set_nofb = virtio_gpu_crtc_mode_set_nofb,
	.atomic_check  = virtio_gpu_crtc_atomic_check,
	.atomic_check  = virtio_gpu_crtc_atomic_check,
};
};