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: 117275 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3514402vqx; Fri, 7 Jul 2023 13:12:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAvay/fZqY6dPlsbTza9fBE1EyWNlAWz8j9jSLhN9PDeybFZ/V4XmqGN6KJtJujxXM9DSR X-Received: by 2002:a17:90b:3749:b0:260:9cad:c581 with SMTP id ne9-20020a17090b374900b002609cadc581mr4537889pjb.3.1688760752052; Fri, 07 Jul 2023 13:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688760752; cv=none; d=google.com; s=arc-20160816; b=SvAcWs5aFyKTAgxFPf5AA9f5VeaNYbCBHYQZCACH2ajltBmnQifHndyEfQURrvu2Pj fVGwohEKakEbnCQvtdhYJzH91ZEgZsEbdVgBLFYl4fqei8yA7smsoYtlugUxudDE6VkW OKHJbBtmCo6IbyZrilgpagAI7LzgOhxGyiwTprwAbR9VYWpNmZr2GiVnZ6dm+/1GYar5 Gkq+zQFmV36RCYK/urOo9wFFnonttXORZPgLGUi2mZjpZs6FUOBvuVnt8zeQfR5FlJbc ACqw9PXk4EEsN5EWKW1NEgU1scDyrdLsWE4rQSjY7LDy0m2LfcS7UZ+cXx1nNbDIybp8 VKvw== 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=WHBxp/DNnVvolpj0sacEs6o3uNv+OMzOoI0vJ6ekVxw=; fh=gVsaew37UwwsLxDKrDM+6sh1Id54vhF3S3Ols7LJ6BU=; b=XClehtUzpb7gFXCsOOVjNcVF256XhBotM4cJ8dJ5az6YQEbrf8zMqPyhBtBO1JftNf SSzPnt4/TMXMIwAtVqpCdJvSgWDqOEoBHD/lj4Fg9G/D71f1fBSd1+6oopGKirANckBs 6pmz0bMGA0ljw4ULOguRubIYSuaPntDl7+Fr50vdZsKKv1BWV7YGfXRnsu46LSA/pmcl jGTw2AdlpfupYmFd1wVO5Q15/6KITlbNQ2H1xvkeZFVlhB7kXI1BQpfacBjBzSlneOSx C4Dt9Jx2rPHUsxEdEE0mmGvPWqnR647Ee+ssstDbEKHP7beWuLn7uUFVYKC8O5iAuVgX KQtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=pfhl6ISe; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020a17090b019100b0026359a2e980si2722168pjs.21.2023.07.07.13.12.17; Fri, 07 Jul 2023 13:12:32 -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=pfhl6ISe; 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 S231845AbjGGUC6 (ORCPT + 99 others); Fri, 7 Jul 2023 16:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbjGGUCy (ORCPT ); Fri, 7 Jul 2023 16:02:54 -0400 Received: from smtp.smtpout.orange.fr (smtp-21.smtpout.orange.fr [80.12.242.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 912301FEC for ; Fri, 7 Jul 2023 13:02:53 -0700 (PDT) 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-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_H3,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770793994362368165?= X-GMAIL-MSGID: =?utf-8?q?1770793994362368165?= 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,