From patchwork Fri Jul 7 20:02:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13305245 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 688CBEB64DA for ; Fri, 7 Jul 2023 20:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HU7v7LTpy4/A6g5n+udU92lL5PMo0JudJrlXhwBumxM=; b=MYKuUQ0oiFVDYK 5ap/mXcJE3NoAP7m57119wUCUepLr/RYkQa7eWI4g42iHbbMUOVycO4TI3UBtT6rhoSgHn87tqx/M Ab4/Lug/ghH1kxfQdyxCcRXMSIjishtQ+drqEeF+x0doQHTyrX2BRf4iCZs0CJ9ecAa9jkLLO2x7U HH/FRbOBfbo/4SoknlvidlXET55Fm0eqlmq/DmQTgfKHtSZ4P92XOo0u2c3YK0aaJBpWQG3ZSdYAw KpBMk78VauQuId32yIabMmhCnkqM1bHiIIr+HON2PC52cHIrUtwOkR//5s6REDjpqxZIpdt+vwCd2 Wa9lJSn4L0qGe2Z0h3Cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHrfT-005aN8-1k; Fri, 07 Jul 2023 20:03:03 +0000 Received: from smtp-22.smtpout.orange.fr ([80.12.242.22] helo=smtp.smtpout.orange.fr) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHrfP-005aLx-2I for linux-arm-kernel@lists.infradead.org; Fri, 07 Jul 2023 20:03:01 +0000 Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id HrfFqvZhDbalEHrfFq3piE; Fri, 07 Jul 2023 22:02:51 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1688760171; bh=WHBxp/DNnVvolpj0sacEs6o3uNv+OMzOoI0vJ6ekVxw=; h=From:To:Cc:Subject:Date; b=pfhl6ISeEJ4F6M+X25JNYSbHnXQA1ZqdfIrYrYIdUtT+YmcU6iCxvqx1J5lqkTdLq jgFMrnXO+fMHqbbV2Hi/kfTMODwxqc28ZVo4HbJDTtguHsW/hObCTsmmp/mtfTLDUK ZYzvpTTJywpWaycwzPTuUP4thj4G1odrAYTmjjQndkxyPMpMCMyw2WRvdVJgsx0HdN 8wcYYedcqQ4X0G996VmhE6QV4HlmJ9Sp8aH79cLrm18ecSWyTd6qYEgQGi0FfM3WBp ZXan13RNN/W+Ayj/28/74p6V2vK6FfaVBZC/N57znawc5LQe1iaSw+q5z91QdplPN2 lxv2Ng7w9G2jw== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 07 Jul 2023 22:02:51 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] clk: imx: clk-gpr-mux: Simplify .determine_rate() Date: Fri, 7 Jul 2023 22:02:48 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230707_130259_910154_3C1702DA X-CRM114-Status: UNSURE ( 9.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org imx_clk_gpr_mux_determine_rate() is the same as __clk_mux_determine_rate(), so use the latter to save some LoC. Signed-off-by: Christophe JAILLET Reviewed-by: Peng Fan --- drivers/clk/imx/clk-gpr-mux.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/clk/imx/clk-gpr-mux.c b/drivers/clk/imx/clk-gpr-mux.c index 0b5a97698b47..0e14b61cba84 100644 --- a/drivers/clk/imx/clk-gpr-mux.c +++ b/drivers/clk/imx/clk-gpr-mux.c @@ -65,16 +65,10 @@ static int imx_clk_gpr_mux_set_parent(struct clk_hw *hw, u8 index) return regmap_update_bits(priv->regmap, priv->reg, priv->mask, val); } -static int imx_clk_gpr_mux_determine_rate(struct clk_hw *hw, - struct clk_rate_request *req) -{ - return clk_mux_determine_rate_flags(hw, req, 0); -} - static const struct clk_ops imx_clk_gpr_mux_ops = { .get_parent = imx_clk_gpr_mux_get_parent, .set_parent = imx_clk_gpr_mux_set_parent, - .determine_rate = imx_clk_gpr_mux_determine_rate, + .determine_rate = __clk_mux_determine_rate, }; struct clk_hw *imx_clk_gpr_mux(const char *name, const char *compatible,