From patchwork Mon Mar 21 19:23:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 8636111 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8457EC0553 for ; Mon, 21 Mar 2016 20:55:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B34A620173 for ; Mon, 21 Mar 2016 20:55:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9947B20306 for ; Mon, 21 Mar 2016 20:55:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6A0B96E78A; Mon, 21 Mar 2016 20:51:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-f196.google.com (mail-yw0-f196.google.com [209.85.161.196]) by gabe.freedesktop.org (Postfix) with ESMTPS id 137B86E060 for ; Mon, 21 Mar 2016 19:23:15 +0000 (UTC) Received: by mail-yw0-f196.google.com with SMTP id d21so8675226ywe.2 for ; Mon, 21 Mar 2016 12:23:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Vn9EoePN0yz+LOhaZEgm4Y7zLJb52I/PGmtin7H4KKI=; b=DBeGcgsPgtEYbrkF+CRYJ1rw/MlSnKjsPP4flXjZrGT8Av23nXFZWPkr7EnTAUG8e4 c9PhAtkYABInRdrHhqI4S8K4yFzgoOJR6QgfDyPiBCr7xQj205Tvd0zB4j598I9bq40L awxdhelKX25lKgPn5I3IK9tKcY2AvGriFKqCDv5IFmsyTWQsnrM8qRnAx39Nh/RNXBOB 03l4dKInyRW+hzLGzfad5eFEeTDuahQgDmOm6zXEkt2Ik2he6J98kV8jUzYZCPPHZQyZ 64BJAMk19tN1McLI97JYIDYDKWj1OXUdVPzjE0dVggiMXU8CWg524YQR9jREldYrM/bd BJ9g== X-Gm-Message-State: AD7BkJL/B+twDFZHr61sM6DlWP9cwFGoWgfYKr0bxhaJCt6zU7TGuHtKDp/5jsjTSbZ0tQ== X-Received: by 10.13.248.2 with SMTP id i2mr14008857ywf.134.1458588193296; Mon, 21 Mar 2016 12:23:13 -0700 (PDT) Received: from jade.localdomain ([177.194.47.65]) by smtp.gmail.com with ESMTPSA id t12sm18268078ywf.9.2016.03.21.12.23.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Mar 2016 12:23:12 -0700 (PDT) From: Gustavo Padovan To: Gerd Hoffmann Subject: [PATCH 1/2] drm/virtio: use new drm_crtc_send_vblank_event() Date: Mon, 21 Mar 2016 16:23:06 -0300 Message-Id: <1458588187-26002-1-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.0 Cc: Gustavo Padovan , open list , "open list:VIRTIO GPU DRIVER" , "open list:VIRTIO GPU DRIVER" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Simplify code by using the new vblank crtc helpers. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/virtio/virtgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index 429aa31..b70bb8b 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -163,7 +163,7 @@ static int virtio_gpu_page_flip(struct drm_crtc *crtc, if (event) { spin_lock_irqsave(&crtc->dev->event_lock, irqflags); - drm_send_vblank_event(crtc->dev, -1, event); + drm_crtc_send_vblank_event(crtc, event); spin_unlock_irqrestore(&crtc->dev->event_lock, irqflags); }