Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1456545rwd; Thu, 15 Jun 2023 10:44:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hJh1YEIqXysGFb3hYfMa8bfd4unM/eYJwApVHoF7ffzm/370bJNkMxxQ1efQwwbcxi2/O X-Received: by 2002:a05:6359:20f:b0:129:cce3:a877 with SMTP id ej15-20020a056359020f00b00129cce3a877mr11531174rwb.1.1686851080761; Thu, 15 Jun 2023 10:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686851080; cv=none; d=google.com; s=arc-20160816; b=MOYe2xi1Uxwu25xIkdxzM/4av/UctcFVBHYvncMuA7o+kCiS82w21/6AEIMXAQ0Fau 5CduDmPZxF4wLzwpfUepCAgUxN/ks+Vr2b9SFXAsaHHTEgiWiILTjlGyzsXB04mxKOzO 8SrI++ib2ztTwhsv89g5rf+oaUfRFJ7kpmE+qt77hlp2L1s/s6O045tKPZ73WQhVm3p+ oWjT1ISQPu2rub0mI7S6blq4JPgQ8G+8ndvd+CnEDg7UNsb3dQHGPU9iJ1IY3rFstd31 10p1T2Gg+cTC2tQ3DlirZ4QXAwdDc23EVstgTw1myb4m6C0fai4J8PFSbzLZ+had6YkH tyzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:mime-version :references:in-reply-to:message-id:date:subject:from:dkim-signature; bh=g0mKsxc7WifgfdQa6wkEL0DNKIhExEjXfMT5XBSp9vg=; b=Lht/hEIby633drDK9R84Zmb5WpJNhq4F4IlPhyNzRYh+KUGO0qOaH+4d18J+WrKewB X48ihkHx44y9MnYkCgmhqzrskWru1KSO8QBSOyMNEomdtSNP7b2RaydSjdZs5xLWXhht EvykzYaT4hSD4cMmUwcF2Acxl7ECCuNaa8vOJRGTMa4thi7mJZOIWGsDCZSMrQ5gFVHh GlcCz13yB6KqgnNjAxH8ENkiQa4Ut9azuEVIiE7c+GmxcEN4+nDnVH9Aezmz72Hl/sUB cd/vNgZmwGlYT4FF4qx2iDDQ3fiS4vp6KI+vuMaD+e5OdneqmhVRd6gFZnuP2LbBAiQb pRLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=s1 header.b=FyhGjc4h; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kwiboo.se Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64-20020a638543000000b005509c8e0ac3si1393692pgd.698.2023.06.15.10.44.28; Thu, 15 Jun 2023 10:44:40 -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; dkim=pass header.i=@kwiboo.se header.s=s1 header.b=FyhGjc4h; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kwiboo.se Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237799AbjFORK4 (ORCPT + 99 others); Thu, 15 Jun 2023 13:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237810AbjFORKx (ORCPT ); Thu, 15 Jun 2023 13:10:53 -0400 Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D17361FD4 for ; Thu, 15 Jun 2023 10:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=g0mKsxc7WifgfdQa6wkEL0DNKIhExEjXfMT5XBSp9vg=; b=FyhGjc4hI55uDjlAar+NHdUxq6WdEL6eAqI0BktwfCEg+kdAJ3JFf1WPDfpHgAqXVeSw 0iCSPkLjU3a50t9iW93e8MRyKTfxUXDBC0r55IH5avyNOZ8krpf3QmUDnTbpI8GUkrmmEB QNQMZZ+ItsbZQoL5E3HIzQtqY+OUDrwvGWKcQHa02IDjKOUs28bwKjwht9hVBPJxXx9988 VZ9iyxa+Bctkenc/cNDy5Y/rkj8QK3x2Zku+iUQcRh/hEQiDkhkmSizU6a0rbLK7TP3scg EA4CC8qPN0Da9zLsdXZYpAaOzfQ91nFd25mq7AEPrUzfPVcfGWa4yUNxpQJtqbCw== Received: by filterdrecv-77869f68cc-l7kjz with SMTP id filterdrecv-77869f68cc-l7kjz-1-648B45FB-47 2023-06-15 17:10:19.904194626 +0000 UTC m=+3087262.988656015 Received: from bionic.localdomain (unknown) by geopod-ismtpd-2 (SG) with ESMTP id qITfAYONSLq-yRrNSqJZKw Thu, 15 Jun 2023 17:10:19.695 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v4 3/6] phy/rockchip: inno-hdmi: remove unused no_c from rk3328 recalc_rate Date: Thu, 15 Jun 2023 17:10:20 +0000 (UTC) Message-Id: <20230615171005.2251032-4-jonas@kwiboo.se> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230615171005.2251032-1-jonas@kwiboo.se> References: <20230615171005.2251032-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h2Wro69xbbdc3QDDK?= =?us-ascii?Q?WHBniN5oob5+vr=2F5t3kES7o30Kht6TfePRyTCkj?= =?us-ascii?Q?RZf4ZJK=2FD4SK2lT1n6EMDZdqBmoJtpxlxXN9Jk2?= =?us-ascii?Q?vwLEdnjqh05zLE1ngbwwVfjO0e9OsZvu5MR8jgY?= =?us-ascii?Q?lV9S38jGH3XBnDiLGfdiw4vzapBullyGg6plxA?= To: Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner Cc: Alex Bee , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 no_c is not used in any calculation, lets remove it. Signed-off-by: Jonas Karlman --- v3: - no change drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c b/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c index 7d412f771f6c..f027e0a2e26b 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c @@ -714,7 +714,7 @@ unsigned long inno_hdmi_phy_rk3328_clk_recalc_rate(struct clk_hw *hw, { struct inno_hdmi_phy *inno = to_inno_hdmi_phy(hw); unsigned long frac; - u8 nd, no_a, no_b, no_c, no_d; + u8 nd, no_a, no_b, no_d; u64 vco; u16 nf; @@ -737,9 +737,6 @@ unsigned long inno_hdmi_phy_rk3328_clk_recalc_rate(struct clk_hw *hw, no_b = inno_read(inno, 0xa5) & RK3328_PRE_PLL_PCLK_DIV_B_MASK; no_b >>= RK3328_PRE_PLL_PCLK_DIV_B_SHIFT; no_b += 2; - no_c = inno_read(inno, 0xa6) & RK3328_PRE_PLL_PCLK_DIV_C_MASK; - no_c >>= RK3328_PRE_PLL_PCLK_DIV_C_SHIFT; - no_c = 1 << no_c; no_d = inno_read(inno, 0xa6) & RK3328_PRE_PLL_PCLK_DIV_D_MASK; do_div(vco, (nd * (no_a == 1 ? no_b : no_a) * no_d * 2)); -- 2.40.1