linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] clk: clk-fractional-divider: Export clk_fractional_divider_general_approximation API
@ 2023-06-01  9:55 Elaine Zhang
  2023-06-09  0:30 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Elaine Zhang @ 2023-06-01  9:55 UTC (permalink / raw)
  To: mturquette, sboyd, kever.yang, zhangqing, heiko
  Cc: linux-clk, linux-kernel, huangtao

This is used by the Rockchip clk driver, export it to allow that
driver to be compiled as a module.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
---
 drivers/clk/clk-fractional-divider.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk-fractional-divider.c b/drivers/clk/clk-fractional-divider.c
index 479297763e70..44bf21c97034 100644
--- a/drivers/clk/clk-fractional-divider.c
+++ b/drivers/clk/clk-fractional-divider.c
@@ -142,6 +142,7 @@ void clk_fractional_divider_general_approximation(struct clk_hw *hw,
 			GENMASK(fd->mwidth - 1, 0), GENMASK(fd->nwidth - 1, 0),
 			m, n);
 }
+EXPORT_SYMBOL_GPL(clk_fractional_divider_general_approximation);
 
 static long clk_fd_round_rate(struct clk_hw *hw, unsigned long rate,
 			      unsigned long *parent_rate)
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] clk: clk-fractional-divider: Export clk_fractional_divider_general_approximation API
  2023-06-01  9:55 [PATCH v1] clk: clk-fractional-divider: Export clk_fractional_divider_general_approximation API Elaine Zhang
@ 2023-06-09  0:30 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2023-06-09  0:30 UTC (permalink / raw)
  To: heiko, kever.yang, mturquette, zhangqing
  Cc: linux-clk, linux-kernel, huangtao

Quoting Elaine Zhang (2023-06-01 02:55:12)
> This is used by the Rockchip clk driver, export it to allow that
> driver to be compiled as a module.

Sounds fine when CONFIG_COMMON_CLK_ROCKCHIP is tristate.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-09  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-01  9:55 [PATCH v1] clk: clk-fractional-divider: Export clk_fractional_divider_general_approximation API Elaine Zhang
2023-06-09  0:30 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).