soc/riscv: Refactor the code for coding style. [1/4]
PD#SWPL-68240
Problem:
Refactor the code for coding style
Solution:
Refactor the code for coding style
Verify:
N/A
Change-Id: Ice836fb01287a444f9c5a2301609b60ac3edf3a2
Signed-off-by: xiaohu.huang <xiaohu.huang@amlogic.com>
diff --git a/s5/wakeup.h b/s5/wakeup.h
index 3a9dd2f..42cab84 100755
--- a/s5/wakeup.h
+++ b/s5/wakeup.h
@@ -7,30 +7,29 @@
#ifndef __WAKEUP_H__
#define __WAKEUP_H__
-inline void wakeup_ap(void)
+static inline void wakeup_ap(void)
{
uint32_t value;
/*set alarm timer*/
REG32(ISA_TIMERB) = 1;
value = REG32(ISA_TIMER_MUX);
- value &= ~((1 << 17) |(1 << 13)| (0x3 << 2));
- value |= ((1 << 17) |(0 << 13)| (0x3 << 2));
+ value &= ~((1 << 17) | (1 << 13) | (0x3 << 2));
+ value |= ((1 << 17) | (0 << 13) | (0x3 << 2));
REG32(ISA_TIMER_MUX) = value;
vTaskDelay(1);
}
-inline void clear_wakeup_trigger(void)
+static inline void clear_wakeup_trigger(void)
{
uint32_t value;
value = REG32(ISA_TIMER_MUX);
- value &= ~((1 << 17) |(1 << 13)| (0x3 << 2));
+ value &= ~((1 << 17) | (1 << 13) | (0x3 << 2));
REG32(ISA_TIMER_MUX) = value;
-
}
-inline void watchdog_reset_system(void)
+static inline void watchdog_reset_system(void)
{
while (1) {
REG32(SEC_AO_WATCHDOG_CNTL) = 1 << 26 | 0 << 18;
@@ -38,5 +37,4 @@
}
}
-
#endif