From patchwork Fri May 12 19:10:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9724799 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0BC4F601E7 for ; Fri, 12 May 2017 19:11:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 041B528831 for ; Fri, 12 May 2017 19:11:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED25B2886D; Fri, 12 May 2017 19:11:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2C8C12886A for ; Fri, 12 May 2017 19:11:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C16D6E706; Fri, 12 May 2017 19:11:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-f193.google.com (mail-qk0-f193.google.com [209.85.220.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id A4A356E705 for ; Fri, 12 May 2017 19:11:08 +0000 (UTC) Received: by mail-qk0-f193.google.com with SMTP id u75so9017086qka.1 for ; Fri, 12 May 2017 12:11:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1hQMzvAz/Ys6KwBGU5smBsoHVKuWreY3pY0ZTI6CuIg=; b=feUP0UWPk80VhfsIzbeA+HkdneSNJ4wh7lTM6nVqAqmz+V8AzcHix9O+1qGOhymEw5 8iDP/05TZDw/BN7qOysQD2WsscKNZUGkKUMHyrsVFUb9vs2yXQoJwLpcmFRlbhUn73Em xaG39pztoRbv78ntJO6jCCI/9i92xS9jLiHBnXOHQrlLTmSqi6r+WE/xakznlu+fFZ9T +yOInBhPWoWFpSBFApEzlpI5oUOlhzfgD2s072VLC7GAgqN7t3svN97qip095biHI/Qo MsWsNe52o3VAliNKLn+f96S05rlgH/zJtDdfygAjbwsGEPR/rOaBxpts5erd6Ps96q7y 8eag== X-Gm-Message-State: AODbwcCIYJwrG1ISCV/oUPHLpLKdV09c0kRxy4Me1Bujan1YUqOFtnmO bSccRIkJycdLtQ== X-Received: by 10.55.104.210 with SMTP id d201mr5178967qkc.22.1494616267813; Fri, 12 May 2017 12:11:07 -0700 (PDT) Received: from localhost.localdomain ([177.17.166.160]) by smtp.gmail.com with ESMTPSA id g32sm2930406qtc.19.2017.05.12.12.11.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 12:11:07 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [RFC v3 4/8] drm/i915: remove intel_cursor_plane_funcs Date: Fri, 12 May 2017 16:10:50 -0300 Message-Id: <20170512191054.10074-5-gustavo@padovan.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170512191054.10074-1-gustavo@padovan.org> References: <20170512191054.10074-1-gustavo@padovan.org> Cc: Gustavo Padovan , Daniel Vetter 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-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan After converting legacy cursor updates to atomic async commits intel_cursor_plane_funcs just duplicates intel_plane_funcs now. Cc: Daniel Vetter Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/i915/intel_display.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 7f4c8d3..ee75165 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -13418,17 +13418,6 @@ const struct drm_plane_funcs intel_plane_funcs = { .atomic_destroy_state = intel_plane_destroy_state, }; -static const struct drm_plane_funcs intel_cursor_plane_funcs = { - .update_plane = drm_atomic_helper_update_plane, - .disable_plane = drm_atomic_helper_disable_plane, - .destroy = intel_plane_destroy, - .set_property = drm_atomic_helper_plane_set_property, - .atomic_get_property = intel_plane_atomic_get_property, - .atomic_set_property = intel_plane_atomic_set_property, - .atomic_duplicate_state = intel_plane_duplicate_state, - .atomic_destroy_state = intel_plane_destroy_state, -}; - static struct intel_plane * intel_primary_plane_create(struct drm_i915_private *dev_priv, enum pipe pipe) { @@ -13675,7 +13664,7 @@ intel_cursor_plane_create(struct drm_i915_private *dev_priv, enum pipe pipe) cursor->disable_plane = intel_disable_cursor_plane; ret = drm_universal_plane_init(&dev_priv->drm, &cursor->base, - 0, &intel_cursor_plane_funcs, + 0, &intel_plane_funcs, intel_cursor_formats, ARRAY_SIZE(intel_cursor_formats), DRM_PLANE_TYPE_CURSOR,