]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
m68k: coldfire: rename timer register access defines
authorGreg Ungerer <gerg@linux-m68k.org>
Thu, 30 Apr 2026 02:14:10 +0000 (12:14 +1000)
committerGreg Ungerer <gerg@kernel.org>
Mon, 8 Jun 2026 03:15:18 +0000 (13:15 +1000)
With the basic ColdFire IO register functions now consistently named
with a "mcf_read"/"mcf_write" prefix it makes sense to name the timers
internal access defines the same way. Convert the local __raw_readtrr
and __raw_writetrr defines to use the consistent prefixes too. Thus
the change is:

    __raw_readtrr  --> mcf_readtrr
    __raw_writetrr --> mcf_writetrr

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/coldfire/timers.c

index 9a6b7d30e4d6eb4c0e35054c9f6be782bf83bd72..9db8e7e6d797b7ef60ea2885566305898ca3799b 100644 (file)
 void coldfire_profile_init(void);
 
 #if defined(CONFIG_M53xx) || defined(CONFIG_M5441x)
-#define        __raw_readtrr   mcf_read32
-#define        __raw_writetrr  mcf_write32
+#define        mcf_readtrr     mcf_read32
+#define        mcf_writetrr    mcf_write32
 #else
-#define        __raw_readtrr   mcf_read16
-#define        __raw_writetrr  mcf_write16
+#define        mcf_readtrr     mcf_read16
+#define        mcf_writetrr    mcf_write16
 #endif
 
 static u32 mcftmr_cycles_per_jiffy;
@@ -119,7 +119,7 @@ void hw_timer_init(void)
         *      for 1 tick, not TRR.  So if you want n cycles,
         *      initialize TRR with n - 1.
         */
-       __raw_writetrr(mcftmr_cycles_per_jiffy - 1, TA(MCFTIMER_TRR));
+       mcf_writetrr(mcftmr_cycles_per_jiffy - 1, TA(MCFTIMER_TRR));
        mcf_write16(MCFTIMER_TMR_ENORI | MCFTIMER_TMR_CLK16 |
                MCFTIMER_TMR_RESTART | MCFTIMER_TMR_ENABLE, TA(MCFTIMER_TMR));
 
@@ -176,7 +176,7 @@ void coldfire_profile_init(void)
        /* Set up TIMER 2 as high speed profile clock */
        mcf_write16(MCFTIMER_TMR_DISABLE, PA(MCFTIMER_TMR));
 
-       __raw_writetrr(((MCF_BUSCLK / 16) / PROFILEHZ), PA(MCFTIMER_TRR));
+       mcf_writetrr(((MCF_BUSCLK / 16) / PROFILEHZ), PA(MCFTIMER_TRR));
        mcf_write16(MCFTIMER_TMR_ENORI | MCFTIMER_TMR_CLK16 |
                MCFTIMER_TMR_RESTART | MCFTIMER_TMR_ENABLE, PA(MCFTIMER_TMR));