diff mbox series

[RESEND,v1] clk: clk-fractional-divider: Export clk_fractional_divider_general_approximation API

Message ID 20230801081456.2551-1-zhangqing@rock-chips.com (mailing list archive)
State Superseded, archived
Headers show
Series [RESEND,v1] clk: clk-fractional-divider: Export clk_fractional_divider_general_approximation API | expand

Commit Message

zhangqing Aug. 1, 2023, 8:14 a.m. UTC
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(+)

Comments

Kever Yang Sept. 9, 2023, 4:06 a.m. UTC | #1
Hi Michael and Stephen,

     Could this patch be land to common clock?

On 2023/8/1 16:14, Elaine Zhang wrote:
> 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>

Looks OK to me,

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever

> ---
>   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)
diff mbox series

Patch

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)