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: 10714575 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 1EF1D13AF for ; Wed, 5 Dec 2018 16:30:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C9282DC67 for ; Wed, 5 Dec 2018 16:30:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A7632DCBC; Wed, 5 Dec 2018 16:30: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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FDE42DC6A for ; Wed, 5 Dec 2018 16:30:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727645AbeLEQaQ (ORCPT ); Wed, 5 Dec 2018 11:30:16 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:40844 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727429AbeLEQaQ (ORCPT ); Wed, 5 Dec 2018 11:30:16 -0500 Received: by mail-yw1-f66.google.com with SMTP id r130so8770877ywg.7 for ; Wed, 05 Dec 2018 08:30:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MNSoVxpbDAFulqdzGJF0tl4VqfCNxxkqjPheU9YEYlw=; b=JsfnYwSiDbVg8UDNKp0/xqo+USjSJ5+Cz++lJBnnqrwzNtoFiWVyu36K9cD/bWSdvH G1et3oMTZ8cBQVnBZx0Y72/R10WAWFZML9s6XZtRnUUwuR0iHhnJji1eBLSmQLcdTBWo uPdJBmwlxg0rcM10/tjRvhxNfR+GoPiJDeikUpmhn1ovYCdCaBDxOUINCcAvXcftz5h8 hJWG/XGbaaM6GZ46vDoMigx95d9hTFPSZ8HMH5Su8iQGsacA42/IanZ1uTuWWxG08QL8 9UoGSydYQoYA5yCb6RlGAMvmJyuf/2o9WjLC9X4RcUlJCRwD3HDZwvCEuHL/gJvAou2o 0F+Q== 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=QayKF5r5GtBRQTVYTNTRH80Tvp+B+AkWrEVIvV80bp4O6Rt5sBWWOe5y6J1b3kBFY5 ZsmzS6IF9xRzYnnP1URo+SB6i3LSIHpUvb8Bnt1JLwIhSjY0ruvw58v/tJxajhOriLyI mdOZeC/xYIvpnsBFBKEsyYewVMFURuoRIXfSqYUycLySkfqrni6JEOkgAZnJIz6oWu7W hcaAOA6MchddpZNO0LBZN18inLOtDhwt7B4i343/PbJ8DmaJJHiAPVwYUwzDQfjaBiGd Zv1tIhEu8Fx8WC+H+3+PKrzrguYAPUmNGovZ+g5c2BoeZylSgIdEOZ1eUwQe8GuzlB6w fyZA== X-Gm-Message-State: AA+aEWYy0GAmX3QWm5S5hojyrOFGgllCtxy96UqFP3jGKpo97eKSUkwF 9lwTguIcji4kwuoxbhTJXebeRg== 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 Cc: robdclark@gmail.com, jsanka@codeaurora.org, Sean Paul , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org 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 To: unlisted-recipients:; (no To-header on input) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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