trivial: Style changed file Signed-off-by: Kent McLeod <kent@kry10.com>
diff --git a/libplatsupport/src/plat/pc99/hpet.c b/libplatsupport/src/plat/pc99/hpet.c index 637d709..a54b697 100644 --- a/libplatsupport/src/plat/pc99/hpet.c +++ b/libplatsupport/src/plat/pc99/hpet.c
@@ -100,22 +100,22 @@ static inline uint64_t *hpet_get_general_config(void *vaddr) { - return (uint64_t*)((uintptr_t)vaddr + GENERAL_CONFIG_REG); + return (uint64_t *)((uintptr_t)vaddr + GENERAL_CONFIG_REG); } static inline uint64_t *hpet_get_main_counter(void *vaddr) { - return (uint64_t*)((uintptr_t)vaddr + MAIN_COUNTER_REG); + return (uint64_t *)((uintptr_t)vaddr + MAIN_COUNTER_REG); } static inline uint64_t *hpet_get_cap_id(void *vaddr) { - return (uint64_t*)((uintptr_t)vaddr + CAP_ID_REG); + return (uint64_t *)((uintptr_t)vaddr + CAP_ID_REG); } static inline hpet_timer_t *hpet_get_hpet_timer(void *vaddr, unsigned int timer) { - return ((hpet_timer_t*)((uintptr_t)vaddr + TIMERS_OFFSET)) + timer; + return ((hpet_timer_t *)((uintptr_t)vaddr + TIMERS_OFFSET)) + timer; } int hpet_start(const hpet_t *hpet) @@ -163,7 +163,8 @@ time = *hpet_get_main_counter(hpet->base_addr); COMPILER_MEMORY_ACQUIRE(); /* race condition on 32-bit systems: check the bottom 32 bits didn't overflow */ - } while (CONFIG_WORD_SIZE == 32 && ((uint32_t) (time >> 32llu)) != ((uint32_t *)hpet_get_main_counter(hpet->base_addr))[1]); + } while (CONFIG_WORD_SIZE == 32 + && ((uint32_t)(time >> 32llu)) != ((uint32_t *)hpet_get_main_counter(hpet->base_addr))[1]); return time * hpet->period_ns; } @@ -259,7 +260,7 @@ COMPILER_MEMORY_RELEASE(); /* read the period of the timer (its in femptoseconds) and calculate no of ticks per ns */ - uint32_t tick_period_fs = (uint32_t) (*hpet_get_cap_id(hpet->base_addr) >> 32llu); + uint32_t tick_period_fs = (uint32_t)(*hpet_get_cap_id(hpet->base_addr) >> 32llu); hpet->period_ns = tick_period_fs / 1000000; return 0;