First coarse run to fix coding style in locm3.
Added --terse and --mailback options to the make stylecheck target. It also does continue even if it enounters a possible error. We decided on two exceptions from the linux kernel coding standard: - Empty wait while loops may end with ; on the same line. - All blocks after while, if, for have to be in brackets even if they only contain one statement. Otherwise it is easy to introduce an error. Checkpatch needs to be adapted to reflect those changes.
This commit is contained in:
@@ -44,18 +44,20 @@ void pmc_plla_config(u8 mul, u8 div)
|
||||
|
||||
void pmc_peripheral_clock_enable(u8 pid)
|
||||
{
|
||||
if (pid < 32)
|
||||
if (pid < 32) {
|
||||
PMC_PCER0 = 1 << pid;
|
||||
else
|
||||
} else {
|
||||
PMC_PCER1 = 1 << (pid & 31);
|
||||
}
|
||||
}
|
||||
|
||||
void pmc_peripheral_clock_disable(u8 pid)
|
||||
{
|
||||
if (pid < 32)
|
||||
if (pid < 32) {
|
||||
PMC_PCDR0 = 1 << pid;
|
||||
else
|
||||
} else {
|
||||
PMC_PCDR1 = 1 << (pid & 31);
|
||||
}
|
||||
}
|
||||
|
||||
void pmc_mck_set_source(enum mck_src src)
|
||||
|
||||
Reference in New Issue
Block a user