From patchwork Fri Jan 7 02:01:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 530465 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp12464imp; Thu, 6 Jan 2022 18:01:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1AcLkWdShwZ5Jjy/NodQxnVC3yh57rdXY6YPWHIRzUwFtACzY+0nyo8uyJ1cygtsiajoI X-Received: by 2002:a62:4e4a:0:b0:4ba:8079:c463 with SMTP id c71-20020a624e4a000000b004ba8079c463mr62541284pfb.9.1641520917352; Thu, 06 Jan 2022 18:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641520917; cv=none; d=google.com; s=arc-20160816; b=p/mpnOYOtL6obkycJXPShRdDQNt2fxcVlyBI/yFxk9Vp9DJoqya+OPVDTVfFsP/5y/ sLewxpMaSmhUnACTbbuwPYFHMyn9q8BsLkRl24+coZ/XW0Fh+W4rp5uKTfULJtVanXJ3 sV05aX3QOzjrObYMW9b0TJ/7b8gplGx72Dy23E7St850Zfz3LgWwHtMgCLmg/4H9MAbV lbZL9ZFaYq9F9PDiNRAKfVlPtoqa3UqmvZ5pETChJVCEl6h3JW7MGJzcdrx2FRtiPx3b 55OuZ8VFIkpk4X5FxdTlVZgaXnRZZFckD8QOBWMbbR8PxKXq4HEWhxQNTdpQShLDOSfO 5Y/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=OHbsyEqfteS19OgRRcOzHQJayCE7Kspad11GnKSJ9XY=; b=GUWe4CSlI9OtvCgTxVBbvnRPoFEw62CqTsNFhWFHOQMb3Un7uL6sYGRnJUey9B4ZTZ x714yYkoRLqtkpoqvcDdBy2tMQv8TsgIta/vNrl9cqAJL0rG+C3Y9UOP4K9gIvUsZHbO 44GP1Yp2Gea5YUQ3JfXG3KTgD/ucFO0/BYVYXbZS7xxEzmCbzsINFKCBo675fjpLVYT5 2rcDoVO6oXclLvU09KMrsnpUiCHBGU6rUGg9KAzGTGef9o0zj0bS1m6chPvj0iK4J84j ICEdncy52fxZ97FjDbs59OjV3vqGBOZSiJQR8VmxobKEaq8A7WTyi6zMNLUbix5w++Ik q1BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XSClUiDy; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 185si3649381pgj.370.2022.01.06.18.01.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 18:01:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XSClUiDy; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D2B7910EDCE; Fri, 7 Jan 2022 02:01:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by gabe.freedesktop.org (Postfix) with ESMTPS id 192A510EDB5 for ; Fri, 7 Jan 2022 02:01:42 +0000 (UTC) Received: by mail-lf1-x129.google.com with SMTP id h7so10283266lfu.4 for ; Thu, 06 Jan 2022 18:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OHbsyEqfteS19OgRRcOzHQJayCE7Kspad11GnKSJ9XY=; b=XSClUiDypO5YErliO//FA6YKgZb1nKZcX4VYG3rMZJ39C3UsrGP+GpaRA6Z6h2qM+v GIbLcKHSdf5qY+XBsm0rkxj44+wzTQbt0vwSKBH/5DPNzRVzKVIx3ePwCND5L+txbZCg tSc+0sSjh2zNu8nDsdElL4GeIXixf9Ewlg8lXNB8riuFuRUR8cPIfWXKKNr5DmZs8Eud cJBO8Ev3OU2uHU0690cM92iFddrIMJx9SrPFqAKKx6N/Q+xv3TkTlIaF2gXWgSCy+Bq8 YuR8JTWcVb5ZGRstoDj8m0YKFILxR8lVSBIybfVjWLWQozpK85LuFqMKhZYqM03OZh9K 0Akg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OHbsyEqfteS19OgRRcOzHQJayCE7Kspad11GnKSJ9XY=; b=qGX9t9MRWUobyP/Fx+odYFwDlbcZYlONFeGonNnpxtoc92gbQ6SLhps+iqRelrgV6d 84xiLSQaH7k5kUTXjBAf9RpGK8kV0R+Am2unuxXucztmU9teENcdhqSI4soOoX92PrQv FTACuJdkWf6iwn8i4rar247EZpJ/C1Tg4thSAGUwUKDUXNWOTjIC4DlRBiMxxbyKFwKH uIzmFOfjQe7B8HSTUkmfGCNOug6JPA/9JUXFeo4q5E2lSjA7EtsjIGq4l/ltT/Uck7E8 Y1uigiHAmS393/3Tn8Wr0dpJdaE/MQpoqUx6wXLTpBp4eR8d1EQlgY0Ts7vPCYmZBDlL Jelw== X-Gm-Message-State: AOAM531iY4FBPujntHzZo9qq4fn+HbanajVenyA5edkIf9+8pgh/RyUe smUAxBkgCw1m0l5bP6CZWCykayWh0ST2Ng== X-Received: by 2002:a05:6512:2149:: with SMTP id s9mr53882517lfr.96.1641520900476; Thu, 06 Jan 2022 18:01:40 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id w12sm382837lfe.256.2022.01.06.18.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 18:01:40 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar , Kuogee Hsieh Subject: [RFC PATCH 6/7] drm/msm/dp: remove dp_display_en/disable prototypes and data argument Date: Fri, 7 Jan 2022 05:01:31 +0300 Message-Id: <20220107020132.587811-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220107020132.587811-1-dmitry.baryshkov@linaro.org> References: <20220107020132.587811-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Remove unused dp_display_en/disable prototypes. While we are at it, remove extra 'data' argument that is unused. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index e63d6056e39d..720e80ea99cb 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -559,9 +559,6 @@ static int dp_hpd_plug_handle(struct dp_display_private *dp, u32 data) return 0; }; -static int dp_display_enable(struct dp_display_private *dp, u32 data); -static int dp_display_disable(struct dp_display_private *dp, u32 data); - static int dp_connect_pending_timeout(struct dp_display_private *dp, u32 data) { u32 state; @@ -841,7 +838,7 @@ static int dp_display_set_mode(struct msm_dp *dp_display, return 0; } -static int dp_display_enable(struct dp_display_private *dp, u32 data) +static int dp_display_enable(struct dp_display_private *dp) { int rc = 0; struct msm_dp *dp_display = &dp->dp_display; @@ -878,7 +875,7 @@ static int dp_display_post_enable(struct msm_dp *dp_display) return 0; } -static int dp_display_disable(struct dp_display_private *dp, u32 data) +static int dp_display_disable(struct dp_display_private *dp) { struct msm_dp *dp_display = &dp->dp_display; @@ -1548,12 +1545,12 @@ static void dp_bridge_enable(struct drm_bridge *drm_bridge) if (state == ST_DISPLAY_OFF) dp_display_host_init(dp_display, true); - dp_display_enable(dp_display, 0); + dp_display_enable(dp_display); rc = dp_display_post_enable(dp); if (rc) { DRM_ERROR("DP display post enable failed, rc=%d\n", rc); - dp_display_disable(dp_display, 0); + dp_display_disable(dp_display); } /* manual kick off plug event to train link */ @@ -1591,7 +1588,7 @@ static void dp_bridge_post_disable(struct drm_bridge *drm_bridge) /* stop sentinel checking */ dp_del_event(dp_display, EV_DISCONNECT_PENDING_TIMEOUT); - dp_display_disable(dp_display, 0); + dp_display_disable(dp_display); state = dp_display->hpd_state; if (state == ST_DISCONNECT_PENDING) {