Fix indentation

This commit is contained in:
UnagiDojyou 2024-02-01 17:08:43 +09:00
parent 98cc9272fa
commit eba145b431
1 changed files with 7 additions and 8 deletions

View File

@ -3,13 +3,12 @@
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
void mxs_set_divcpu(uint8_t clkdiv){
struct mxs_clkctrl_regs *clkctrl_regs =
void mxs_set_divcpu(uint8_t clkdiv) {
struct mxs_clkctrl_regs *clkctrl_regs =
(struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE;
uint32_t clkctrl;
clkctrl = readl(&clkctrl_regs->hw_clkctrl_cpu);
clkctrl &= ~0x3F;
clkctrl |= (clkdiv & 0x3F);
writel(clkctrl, &clkctrl_regs->hw_clkctrl_cpu);
uint32_t clkctrl;
clkctrl = readl(&clkctrl_regs->hw_clkctrl_cpu);
clkctrl &= ~0x3F;
clkctrl |= (clkdiv & 0x3F);
writel(clkctrl, &clkctrl_regs->hw_clkctrl_cpu);
}