Skip to contentSkip to conversation

ARM: mach-omap2: omap3: Make clock functions static

PATCH In review Adam Ford 2 participants 2 messages Mar 5, 2022 – Mar 14, 2022

Subsystems (3)
lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 ARM: mach-omap2: omap3: Make clock functions static

get_osc_clk_speed and get_sys_clkin_sel are only used in one file. Make them static.

Tested on OMAP3530, DM3730, AM3517.

arch/arm/mach-omap2/omap3/clock.c +2 -2
index 71f73492c6..13685e0567 100644
@@ -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:
Signature · 1 line
2.34.1
#1 lore raw

arch/arm/mach-omap2/omap3/clock.c

Quoted 9 lines · 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.

arch/arm/mach-omap2/omap3/clock.c +0 -0
index 71f73492c6..13685e0567 100644

Applied to u-boot/next, thanks!

Signature · 1 line
Tom