From patchwork Wed Dec 5 16:29:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10714583 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99BEC13AF for ; Wed, 5 Dec 2018 16:30:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89B132DCB6 for ; Wed, 5 Dec 2018 16:30:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DE5C2DC95; Wed, 5 Dec 2018 16:30:21 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 3C4142DCB6 for ; Wed, 5 Dec 2018 16:30:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B962E6E4B3; Wed, 5 Dec 2018 16:30:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw1-xc44.google.com (mail-yw1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CDE86E4AD for ; Wed, 5 Dec 2018 16:30:15 +0000 (UTC) Received: by mail-yw1-xc44.google.com with SMTP id t13so8762087ywe.13 for ; Wed, 05 Dec 2018 08:30:15 -0800 (PST) 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:mime-version:content-transfer-encoding; bh=MNSoVxpbDAFulqdzGJF0tl4VqfCNxxkqjPheU9YEYlw=; b=LDbHdl+hu72s9zV9sPJ2dlv8C+zzG0ZT79QzeGF5HeR/p9gPvcVFNQkwE7IQHxdwHn kCR99DsAEhxzbyyzvgfSbPQNBF6q00Lx8SiL/EAUbthND6v19ZoTc8oxREtuX9iFV33Z jVDPzhlWj04ZYnSWqxCNvv5R7zMXKtTUPfBZZaSCnyUq0PQH0e44xQ743Q8dDClCxKVH VdLTQdnkERt33v3XP0zDRYqFfuwxkFJeZuf5kjfwMFlRwLEKRVRUXch4ZO+iV/w6GKa4 WwVDNj0c/ol4agUlPThYQgiE8ZB9faq7MVYmwMkcg5Dr4edNfb3QCVKvHze+tu/hqmf3 l6rA== X-Gm-Message-State: AA+aEWZIB1URCGtF/I+ybNEhJ93C27LUh8EIYtQTSg58O/EEurP3FnFm 8nPAxOuaYuuxt24oa9Gq6HzJtA== X-Google-Smtp-Source: AFSGD/UmIK9hweY+JfL6OWLn7wwkqPQ+HqLYhz6xDMri9ymyfbXwVLrv3kPD/sATAFzciCQsKJlTXg== X-Received: by 2002:a81:b657:: with SMTP id h23mr25241209ywk.378.1544027414070; Wed, 05 Dec 2018 08:30:14 -0800 (PST) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id n133sm6460470ywb.55.2018.12.05.08.30.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 08:30:13 -0800 (PST) From: Sean Paul To: Subject: [PATCH 8/9] drm/msm: mdp5: Remove mdp5_plane_install_rotation_property() Date: Wed, 5 Dec 2018 11:29:40 -0500 Message-Id: <20181205162958.25025-8-sean@poorly.run> X-Mailer: git-send-email 2.20.0.rc1.387.gf8505762e3-goog In-Reply-To: <20181205162958.25025-1-sean@poorly.run> References: <20181205162958.25025-1-sean@poorly.run> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Sean Paul , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Sean Paul Just call drm_plane_create_rotation_property() directly Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c index 5ea06804cef2b..41590588a6f39 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c @@ -52,17 +52,6 @@ static void mdp5_plane_destroy(struct drm_plane *plane) kfree(mdp5_plane); } -static void mdp5_plane_install_rotation_property(struct drm_device *dev, - struct drm_plane *plane) -{ - drm_plane_create_rotation_property(plane, - DRM_MODE_ROTATE_0, - DRM_MODE_ROTATE_0 | - DRM_MODE_ROTATE_180 | - DRM_MODE_REFLECT_X | - DRM_MODE_REFLECT_Y); -} - /* helper to install properties which are common to planes and crtcs */ static void mdp5_plane_install_properties(struct drm_plane *plane, struct drm_mode_object *obj) @@ -98,7 +87,12 @@ static void mdp5_plane_install_properties(struct drm_plane *plane, INSTALL_RANGE_PROPERTY(zpos, ZPOS, 1, 255, 1); - mdp5_plane_install_rotation_property(dev, plane); + drm_plane_create_rotation_property(plane, + DRM_MODE_ROTATE_0, + DRM_MODE_ROTATE_0 | + DRM_MODE_ROTATE_180 | + DRM_MODE_REFLECT_X | + DRM_MODE_REFLECT_Y); #undef INSTALL_RANGE_PROPERTY #undef INSTALL_ENUM_PROPERTY