Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32409757rwd; Fri, 7 Jul 2023 13:30:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQ0xaRVffUjw/ai7AYYbgMdbyEO5mTxjTcD7yuNSr35qw5JrBFGzUhPS1SYMXPJDQCeNL0 X-Received: by 2002:aa7:d7d2:0:b0:51d:91d2:334d with SMTP id e18-20020aa7d7d2000000b0051d91d2334dmr5248289eds.15.1688761803651; Fri, 07 Jul 2023 13:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688761803; cv=none; d=google.com; s=arc-20160816; b=oEMeGBrg1CsAOK+ZykdGy1uCDsVSiyRwoP1kJ0btB9veqQ5o1pCAuU2L3yBgbUt8zH +WGx2fkniEZ02rncYGJXex14k8IirNj1zYluEPMqHqatSh70olduLJbnrFoLqfPU76e/ 9BnDmtfr1ALgFEF3uzdZKy5eJamFlgel7bt5/t5p/rx2qRYs3zXQJIAZsmLxVwRmMkDV 8UzkHX7i65K4PU3GUNZtSIE2bo0OMDl8CNfzntqc7W9Ao2r5jVSkGZGB9AyHLLW8T+Bt b3xnRF64D1EOsNH6esX/ILlS8t6orShzKNMcsJZpvsu4iL1K1ktJA3c49exED0030BR6 GMnA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=fdKSf2lM13oDsLK578xn0Ae9iOX668fZDk7OB3TOWx4=; fh=6ArE8ml5vx93ofWItL4KJVmeHP5skklY1/mYwJVrd5I=; b=UbcIm8Tx9s5wLLWPODwaBPU36dBxo9mwWc77Xu62qjkTClLtk34wTOTx8SPqY3CNhy yug2uYN8weovTCbg1PjK0smuwAzSyz6vpit+4qII4Bf9GSs/xZz/HdYgmpJRxNxxMTxq e/j9S2w3XLA29nRPPXMQKCB44oHBD9gw1t6WTll2XT0AIJ0/ND+JT8Uc9rSc4wZxsgMA sicKBs140BcaSOTJWYtC0ZlthBSN9VJuGnEItBbE2xYEP6qu+NSoSvrh6axGwi0dAJ8f dAjBA1/eBXar8nGLF5qszi6EyHhO0Dm26dYDa/G3Nr2AAbqNqBZD0b5MPEuNI6Llmbzm E8AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=XYD2xtwV; 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 x26-20020aa7d6da000000b0051dd4e2847csi2453173edr.660.2023.07.07.13.29.39; Fri, 07 Jul 2023 13:30:03 -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=@wanadoo.fr header.s=t20230301 header.b=XYD2xtwV; 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 S232308AbjGGUCb (ORCPT + 99 others); Fri, 7 Jul 2023 16:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231845AbjGGUC3 (ORCPT ); Fri, 7 Jul 2023 16:02:29 -0400 Received: from smtp.smtpout.orange.fr (smtp-20.smtpout.orange.fr [80.12.242.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2A4CFE for ; Fri, 7 Jul 2023 13:02:27 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id Hrepqf0QVSMckHreqqzs8D; Fri, 07 Jul 2023 22:02:25 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1688760145; bh=fdKSf2lM13oDsLK578xn0Ae9iOX668fZDk7OB3TOWx4=; h=From:To:Cc:Subject:Date; b=XYD2xtwVmBx+xOTyy2rhnu6ACkAE1O3RSjhOyHW1qZ9OuA7E3ToFTeZ53Vh5TlMcM dAA1i/a7xiDws6Xje5Pba2ppcxmouxrJR5iFGjCA5qxCDAJQamyLeEgjKaXJ5hK4iZ MYtvxhBufhZN9jSxrFD8wJCSlaJzBFNV6ppkdRGrNp21si0Dh1BhZbbleey2VuJmjA R2pOo7sCPtCGdsvUOdB+32wxFN9OZb60j2NV0VQ2wOoni/UJbAC8ghiR0xYxMWyUms IIAJ7Wxy8ZvEuXqwBIgAcSw1LaZ044og0m0/mmX+/9/whNsZwhbPPYJkm08GZ0pEZ0 3Uzbu5PN7+ghQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 07 Jul 2023 22:02:25 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Emil Renner Berthing , Hal Feng , Michael Turquette , Stephen Boyd Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-clk@vger.kernel.org Subject: [PATCH] clk: starfive: Simplify .determine_rate() Date: Fri, 7 Jul 2023 22:02:18 +0200 Message-Id: <085541814ebe2543cb7e8a31004c0da3e7d5b6eb.1688760111.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 jh71x0_clk_mux_determine_rate() is the same as __clk_mux_determine_rate(), so use the latter to save some LoC. Signed-off-by: Christophe JAILLET --- drivers/clk/starfive/clk-starfive-jh71x0.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/clk/starfive/clk-starfive-jh71x0.c b/drivers/clk/starfive/clk-starfive-jh71x0.c index b372083d11c3..aebc99264a0b 100644 --- a/drivers/clk/starfive/clk-starfive-jh71x0.c +++ b/drivers/clk/starfive/clk-starfive-jh71x0.c @@ -174,12 +174,6 @@ static int jh71x0_clk_set_parent(struct clk_hw *hw, u8 index) return 0; } -static int jh71x0_clk_mux_determine_rate(struct clk_hw *hw, - struct clk_rate_request *req) -{ - return clk_mux_determine_rate_flags(hw, req, 0); -} - static int jh71x0_clk_get_phase(struct clk_hw *hw) { struct jh71x0_clk *clk = jh71x0_clk_from(hw); @@ -261,7 +255,7 @@ static const struct clk_ops jh71x0_clk_gdiv_ops = { }; static const struct clk_ops jh71x0_clk_mux_ops = { - .determine_rate = jh71x0_clk_mux_determine_rate, + .determine_rate = __clk_mux_determine_rate, .set_parent = jh71x0_clk_set_parent, .get_parent = jh71x0_clk_get_parent, .debug_init = jh71x0_clk_debug_init, @@ -271,7 +265,7 @@ static const struct clk_ops jh71x0_clk_gmux_ops = { .enable = jh71x0_clk_enable, .disable = jh71x0_clk_disable, .is_enabled = jh71x0_clk_is_enabled, - .determine_rate = jh71x0_clk_mux_determine_rate, + .determine_rate = __clk_mux_determine_rate, .set_parent = jh71x0_clk_set_parent, .get_parent = jh71x0_clk_get_parent, .debug_init = jh71x0_clk_debug_init, -- 2.34.1