Commit 2bd6cc8c authored by Daniel Vetter's avatar Daniel Vetter

drm/hdlcd: Use helper support for nonblocking commits

With the fixed up drm event handling for crtc_state->event we can just
use the helper support for nonblocking commits.

Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Tested-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465388359-8070-12-git-send-email-daniel.vetter@ffwll.ch
parent 17b58b23
...@@ -106,17 +106,11 @@ static void hdlcd_fb_output_poll_changed(struct drm_device *drm) ...@@ -106,17 +106,11 @@ static void hdlcd_fb_output_poll_changed(struct drm_device *drm)
drm_fbdev_cma_hotplug_event(hdlcd->fbdev); drm_fbdev_cma_hotplug_event(hdlcd->fbdev);
} }
static int hdlcd_atomic_commit(struct drm_device *dev,
struct drm_atomic_state *state, bool nonblock)
{
return drm_atomic_helper_commit(dev, state, false);
}
static const struct drm_mode_config_funcs hdlcd_mode_config_funcs = { static const struct drm_mode_config_funcs hdlcd_mode_config_funcs = {
.fb_create = drm_fb_cma_create, .fb_create = drm_fb_cma_create,
.output_poll_changed = hdlcd_fb_output_poll_changed, .output_poll_changed = hdlcd_fb_output_poll_changed,
.atomic_check = drm_atomic_helper_check, .atomic_check = drm_atomic_helper_check,
.atomic_commit = hdlcd_atomic_commit, .atomic_commit = drm_atomic_helper_commit,
}; };
static void hdlcd_setup_mode_config(struct drm_device *drm) static void hdlcd_setup_mode_config(struct drm_device *drm)
......
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