Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp741097rwr; Thu, 27 Apr 2023 07:37:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zwkA4ONKzx6JHDFgyhQ9FKzl7OrZ8XtJpk92NddHPnzh3y579/Ak1Ogsh6J7ZviTSGirV X-Received: by 2002:a05:6a00:1ca4:b0:637:434a:75df with SMTP id y36-20020a056a001ca400b00637434a75dfmr2565438pfw.0.1682606237774; Thu, 27 Apr 2023 07:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682606237; cv=none; d=google.com; s=arc-20160816; b=sqloN219cK/L9jLOfgWfOSarz3zUBtiPtHJkz9DhKjODJmsQMJd5ErN5x6OQPfr7LV qJ5ZSBXAkam6LoX+Bf14qjzN23619nTdSZnVdrlMAV8Fd5jczNavQ3+zmuSgZ19sqqiS 6sMz0es8Q4+j3flDjeI5fYuymmwkeOLGBKNrQk0Jrvar8UMcy6t9U5zDueMwu0V6EJXu ocT6esMDHKA1hAbtBCEbqt5tmxupumAiNMLJQRj2thLVGBA7dc9RRaNhEWlQfh0G0eGn TDk8RB+pS4AyQ+l/4OJUWSSUjjR5WfSh0js359kkrn8oAnOCQYG/b9U/0nxnjNWeAmnq cefg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1eCb6FNxRPoF/tNTLBoX8TwlbmEX0dS8oJrJBKww9Sk=; b=kcarULnchSjFvfq7ViL/Don4e+lGI8nDJJlWZbKg8UsMtha6V5gZe0bN/IQ1FbEvO1 /NxYSbFJAq+02IINIgB6DurjhrSS/TZ5ogmhaCsDl9qN2XOAEefLkL71BiRUYoa2H9sm mB3xM5KQOkBJTQpsy7EJzXfdfAOlPFnzfTwV4z5bglwH54t/uVPcAivviw3b+TJ2rXM5 RGV9tb1ZfQakk3s/1dMMXgghaf3OxQB/t0ZQB0Gdv5Lm8WK9sYWunQJ58PIH5V2Fp6xG 9UvD8UZ2SSDrhfTTJXXH0PjEzOiTeyquQtOV6QE0I7J5jMS39cHXXx/mFfeorB6FYX2q kOIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9-20020aa79a49000000b0063b68fa0807si19096159pfj.263.2023.04.27.07.37.05; Thu, 27 Apr 2023 07:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244136AbjD0ObH (ORCPT + 99 others); Thu, 27 Apr 2023 10:31:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244117AbjD0Oa1 (ORCPT ); Thu, 27 Apr 2023 10:30:27 -0400 Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EADE346AE for ; Thu, 27 Apr 2023 07:30:19 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id A1E7320B63; Thu, 27 Apr 2023 16:29:43 +0200 (CEST) From: Francesco Dolcini To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , tomi.valkeinen@ideasonboard.com, dri-devel@lists.freedesktop.org Cc: Francesco Dolcini , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org Subject: [PATCH v1 9/9] drm/bridge: tc358768: remove unused variable Date: Thu, 27 Apr 2023 16:29:34 +0200 Message-Id: <20230427142934.55435-10-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230427142934.55435-1-francesco@dolcini.it> References: <20230427142934.55435-1-francesco@dolcini.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Francesco Dolcini Remove the unused phy_delay_nsk variable, before it was wrongly used to compute some register value, the fixed computation is no longer using it and therefore can be removed. Signed-off-by: Francesco Dolcini --- drivers/gpu/drm/bridge/tc358768.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358768.c b/drivers/gpu/drm/bridge/tc358768.c index 947c7dca567a..d3af42a16e69 100644 --- a/drivers/gpu/drm/bridge/tc358768.c +++ b/drivers/gpu/drm/bridge/tc358768.c @@ -641,7 +641,7 @@ static void tc358768_bridge_pre_enable(struct drm_bridge *bridge) u32 val, val2, lptxcnt, hact, data_type; s32 raw_val; const struct drm_display_mode *mode; - u32 dsibclk_nsk, dsiclk_nsk, ui_nsk, phy_delay_nsk; + u32 dsibclk_nsk, dsiclk_nsk, ui_nsk; u32 dsiclk, dsibclk, video_start; const u32 internal_delay = 40; int ret, i; @@ -725,11 +725,9 @@ static void tc358768_bridge_pre_enable(struct drm_bridge *bridge) dsibclk); dsiclk_nsk = (u32)div_u64((u64)1000000000 * TC358768_PRECISION, dsiclk); ui_nsk = dsiclk_nsk / 2; - phy_delay_nsk = dsibclk_nsk + 2 * dsiclk_nsk; dev_dbg(priv->dev, "dsiclk_nsk: %u\n", dsiclk_nsk); dev_dbg(priv->dev, "ui_nsk: %u\n", ui_nsk); dev_dbg(priv->dev, "dsibclk_nsk: %u\n", dsibclk_nsk); - dev_dbg(priv->dev, "phy_delay_nsk: %u\n", phy_delay_nsk); /* LP11 > 100us for D-PHY Rx Init */ val = tc358768_ns_to_cnt(100 * 1000, dsibclk_nsk) - 1; -- 2.25.1