diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2023-01-28 15:26:35 +0100 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2023-01-28 17:31:12 +0100 |
commit | afb5d9e9d5a5ecafceb0e3d4ffe1210077f8a40b (patch) | |
tree | 788c4355bd7a717a9eeb55b51480efdcf7a79c21 /target/linux/realtek | |
parent | f6ba61b9298f12dbf116556edc879d047e5145e9 (diff) | |
download | upstream-afb5d9e9d5a5ecafceb0e3d4ffe1210077f8a40b.tar.gz upstream-afb5d9e9d5a5ecafceb0e3d4ffe1210077f8a40b.tar.bz2 upstream-afb5d9e9d5a5ecafceb0e3d4ffe1210077f8a40b.zip |
realtek: timer: Fix cosmetic whitespace in comments
Comments are a bit weird in the timer driver, lets fix those.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'target/linux/realtek')
-rw-r--r-- | target/linux/realtek/files-5.15/drivers/clocksource/timer-rtl-otto.c | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/target/linux/realtek/files-5.15/drivers/clocksource/timer-rtl-otto.c b/target/linux/realtek/files-5.15/drivers/clocksource/timer-rtl-otto.c index 0395cf29e5..086f62112a 100644 --- a/target/linux/realtek/files-5.15/drivers/clocksource/timer-rtl-otto.c +++ b/target/linux/realtek/files-5.15/drivers/clocksource/timer-rtl-otto.c @@ -27,7 +27,6 @@ * the timer is in operating mode COUNTER it stops. In mode TIMER it will * continue to count up. */ - #define RTTM_CTRL_COUNTER 0 #define RTTM_CTRL_TIMER BIT(24) @@ -43,7 +42,6 @@ * MHz and 153.125 MHz. The greatest common divisor of all explained possible * speeds is 3125000. Pin the timers to this 3.125 MHz reference frequency. */ - #define RTTM_TICKS_PER_SEC 3125000 struct rttm_cs { @@ -51,10 +49,7 @@ struct rttm_cs { struct clocksource cs; }; -/* - * Simple internal register functions - */ - +/* Simple internal register functions */ static inline void rttm_set_counter(void __iomem *base, unsigned int counter) { iowrite32(counter, base + RTTM_CNT); @@ -95,10 +90,7 @@ static inline void rttm_disable_irq(void __iomem *base) iowrite32(0, base + RTTM_INT); } -/* - * Aggregated control functions for kernel clock framework - */ - +/* Aggregated control functions for kernel clock framework */ #define RTTM_DEBUG(base) \ pr_debug("------------- %s %d %08x\n", __func__, \ smp_processor_id(), (u32)base) @@ -187,10 +179,7 @@ static u64 rttm_read_clocksource(struct clocksource *cs) return (u64)rttm_get_counter(rcs->to.of_base.base); } -/* - * Module initialization part. - */ - +/* Module initialization part. */ static DEFINE_PER_CPU(struct timer_of, rttm_to) = { .flags = TIMER_OF_BASE | TIMER_OF_CLOCK | TIMER_OF_IRQ, .of_irq = { @@ -256,9 +245,8 @@ static int __init rttm_probe(struct device_node *np) int cpu, cpu_rollback; struct timer_of *to; int clkidx = num_possible_cpus(); -/* - * Use the first n timers as per CPU clock event generators - */ + + /* Use the first n timers as per CPU clock event generators */ for_each_possible_cpu(cpu) { to = per_cpu_ptr(&rttm_to, cpu); to->of_irq.index = to->of_base.index = cpu; @@ -268,9 +256,8 @@ static int __init rttm_probe(struct device_node *np) } rttm_setup_timer(to->of_base.base); } -/* - * Activate the n'th+1 timer as a stable CPU clocksource. - */ + + /* Activate the n'th + 1 timer as a stable CPU clocksource. */ to = &rttm_cs.to; to->of_base.index = clkidx; timer_of_init(np, to); |