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:
@@ -38,8 +38,9 @@ LGPL License Terms @ref lgpl_license
|
||||
|
||||
void pwr_set_vos_scale(vos_scale_t scale)
|
||||
{
|
||||
if (scale == SCALE1)
|
||||
if (scale == SCALE1) {
|
||||
PWR_CR |= PWR_CR_VOS;
|
||||
else if (scale == SCALE2)
|
||||
} else if (scale == SCALE2) {
|
||||
PWR_CR &= PWR_CR_VOS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user