Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: analogbits: Allow building the library as a module

This library is only used by the SiFive PRCI driver. When that driver is
built as a module, it makes sense to build this library as a module too.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20230725004248.381868-1-samuel.holland@sifive.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Samuel Holland and committed by
Stephen Boyd
ee58d6a1 0bb80ecc

+9 -1
+1 -1
drivers/clk/analogbits/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 config CLK_ANALOGBITS_WRPLL_CLN28HPC 3 - bool 3 + tristate
+8
drivers/clk/analogbits/wrpll-cln28hpc.c
··· 28 28 #include <linux/math64.h> 29 29 #include <linux/math.h> 30 30 #include <linux/minmax.h> 31 + #include <linux/module.h> 31 32 32 33 #include <linux/clk/analogbits-wrpll-cln28hpc.h> 33 34 ··· 313 312 314 313 return 0; 315 314 } 315 + EXPORT_SYMBOL_GPL(wrpll_configure_for_rate); 316 316 317 317 /** 318 318 * wrpll_calc_output_rate() - calculate the PLL's target output rate ··· 351 349 352 350 return n; 353 351 } 352 + EXPORT_SYMBOL_GPL(wrpll_calc_output_rate); 354 353 355 354 /** 356 355 * wrpll_calc_max_lock_us() - return the time for the PLL to lock ··· 369 366 { 370 367 return MAX_LOCK_US; 371 368 } 369 + EXPORT_SYMBOL_GPL(wrpll_calc_max_lock_us); 370 + 371 + MODULE_AUTHOR("Paul Walmsley <paul.walmsley@sifive.com>"); 372 + MODULE_DESCRIPTION("Analog Bits Wide-Range PLL library"); 373 + MODULE_LICENSE("GPL");