* [PATCH] ARM: mach-omap2: omap3: Make clock functions static
@ 2022-03-05 14:25 Adam Ford
2022-03-14 13:08 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2022-03-05 14:25 UTC (permalink / raw)
To: u-boot; +Cc: trini, aford, Adam Ford
get_osc_clk_speed and get_sys_clkin_sel are only used in
one file. Make them static.
Tested on OMAP3530, DM3730, AM3517.
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/arch/arm/mach-omap2/omap3/clock.c b/arch/arm/mach-omap2/omap3/clock.c
index 71f73492c6..13685e0567 100644
--- a/arch/arm/mach-omap2/omap3/clock.c
+++ b/arch/arm/mach-omap2/omap3/clock.c
@@ -23,7 +23,7 @@
* get_sys_clk_speed() - determine reference oscillator speed
* based on known 32kHz clock and gptimer.
*****************************************************************************/
-u32 get_osc_clk_speed(void)
+static u32 get_osc_clk_speed(void)
{
u32 start, cstart, cend, cdiff, cdiv, val;
struct prcm *prcm_base = (struct prcm *)PRCM_BASE;
@@ -90,7 +90,7 @@ u32 get_osc_clk_speed(void)
* get_sys_clkin_sel() - returns the sys_clkin_sel field value based on
* input oscillator clock frequency.
*****************************************************************************/
-void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
+static void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
{
switch(osc_clk) {
case S38_4M:
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: mach-omap2: omap3: Make clock functions static
2022-03-05 14:25 [PATCH] ARM: mach-omap2: omap3: Make clock functions static Adam Ford
@ 2022-03-14 13:08 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-03-14 13:08 UTC (permalink / raw)
To: Adam Ford; +Cc: u-boot, aford
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
On Sat, Mar 05, 2022 at 08:25:23AM -0600, Adam Ford wrote:
> get_osc_clk_speed and get_sys_clkin_sel are only used in
> one file. Make them static.
>
> Tested on OMAP3530, DM3730, AM3517.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/arch/arm/mach-omap2/omap3/clock.c b/arch/arm/mach-omap2/omap3/clock.c
> index 71f73492c6..13685e0567 100644
Applied to u-boot/next, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-14 13:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-05 14:25 [PATCH] ARM: mach-omap2: omap3: Make clock functions static Adam Ford
2022-03-14 13:08 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox