From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE7C7C433F5 for ; Sat, 19 Feb 2022 01:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238970AbiBSBuo (ORCPT ); Fri, 18 Feb 2022 20:50:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231910AbiBSBuo (ORCPT ); Fri, 18 Feb 2022 20:50:44 -0500 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D53DA25B6E2; Fri, 18 Feb 2022 17:50:23 -0800 (PST) Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 2C38883A8E; Sat, 19 Feb 2022 02:50:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645235422; bh=6IpwvbFLa2APzMPszYSpeZzZqv/EI+cX9F3pN5mrlWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w6IbJZZey2+x+NtnipyyfG1dVOXv/30sJo33KIYYjeFgKFeqyXy2q6zPanTlc8+bX DCoSARGIYhEaMzloShyopEvq7P4dczQK71HLk+XTQQPbVZPh4bv721H6TPWniQ1kS8 oCQNYHQS5VLNeOxZzhLL2UUSk6kzDQo8UtAsdpKOd1xPyORMf8hRlbCM7W8AwiVex3 prElxJbYYydKT16TP6eaxOQV7/M2wP0AToGCPFmboLQX+nqYeWtMssgQuWZie5xZlp MqVi2w+OcyIz2JInhM3ib54Yb53LBiuvQI1zSHpjVqXVH8Fk0QGSqX1P6iCOr8QGmo mYtoIKzwd0e5A== From: Marek Vasut To: linux-clk@vger.kernel.org Cc: Marek Vasut , Michael Turquette , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org Subject: [PATCH v2 2/3] clk: Make __clk_hw_register_fixed_factor non-static Date: Sat, 19 Feb 2022 02:50:02 +0100 Message-Id: <20220219015003.507601-2-marex@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220219015003.507601-1-marex@denx.de> References: <20220219015003.507601-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Access to the full parameters of __clk_hw_register_fixed_factor() is useful in case a driver is registering fixed clock with only single parent, in which case the driver should set parent_name to NULL and parent_index to 0, and access to this function permits it to do just that. Signed-off-by: Marek Vasut Cc: Michael Turquette Cc: Rob Herring Cc: Stephen Boyd Cc: devicetree@vger.kernel.org To: linux-clk@vger.kernel.org --- V2: - New patch --- drivers/clk/clk-fixed-factor.c | 2 +- include/linux/clk-provider.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 4e4b6d3676126..81d8c9e430a23 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -76,7 +76,7 @@ static void devm_clk_hw_register_fixed_factor_release(struct device *dev, void * clk_hw_unregister(&fix->hw); } -static struct clk_hw * +struct clk_hw * __clk_hw_register_fixed_factor(struct device *dev, struct device_node *np, const char *name, const char *parent_name, int index, unsigned long flags, unsigned int mult, unsigned int div, diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 2faa6f7aa8a87..d216221448d31 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -992,6 +992,11 @@ struct clk_fixed_factor { #define to_clk_fixed_factor(_hw) container_of(_hw, struct clk_fixed_factor, hw) extern const struct clk_ops clk_fixed_factor_ops; +struct clk_hw * +__clk_hw_register_fixed_factor(struct device *dev, struct device_node *np, + const char *name, const char *parent_name, int index, + unsigned long flags, unsigned int mult, unsigned int div, + bool devm); struct clk *clk_register_fixed_factor(struct device *dev, const char *name, const char *parent_name, unsigned long flags, unsigned int mult, unsigned int div); -- 2.34.1