drm: qxl: Replace CRTC .commit() helper operation with .enable()
authorLaurent Pinchart <[email protected]>
Tue, 27 Jun 2017 21:16:17 +0000 (00:16 +0300)
committerDaniel Vetter <[email protected]>
Wed, 28 Jun 2017 10:51:13 +0000 (12:51 +0200)
The CRTC helper .commit() operation is legacy code, the atomic helpers
prefer the .enable() operation. Replace the .commit() helper operation
with .enable() in the driver.

Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/qxl/qxl_display.c

index 19ba336ce096aaf7cf869318c9545893b1b947d1..7ede5f131a5cddf6442e4ced0861c9e927e1ab9c 100644 (file)
@@ -447,7 +447,7 @@ static void qxl_mode_set_nofb(struct drm_crtc *crtc)
 
 }
 
-static void qxl_crtc_commit(struct drm_crtc *crtc)
+static void qxl_crtc_enable(struct drm_crtc *crtc)
 {
        DRM_DEBUG("\n");
 }
@@ -466,7 +466,7 @@ static const struct drm_crtc_helper_funcs qxl_crtc_helper_funcs = {
        .disable = qxl_crtc_disable,
        .mode_fixup = qxl_crtc_mode_fixup,
        .mode_set_nofb = qxl_mode_set_nofb,
-       .commit = qxl_crtc_commit,
+       .enable = qxl_crtc_enable,
        .atomic_flush = qxl_crtc_atomic_flush,
 };