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:
@@ -21,19 +21,20 @@
|
||||
|
||||
u16 desig_get_flash_size(void)
|
||||
{
|
||||
return DESIG_FLASH_SIZE;
|
||||
return DESIG_FLASH_SIZE;
|
||||
}
|
||||
|
||||
void desig_get_unique_id(u32 result[])
|
||||
{
|
||||
// Could also just return a pointer to the start? read it as they wish?
|
||||
u16 bits15_0 = DESIG_UID_15_0;
|
||||
u32 bits31_16 = DESIG_UID_31_16;
|
||||
u32 bits63_32 = DESIG_UID_63_32;
|
||||
u32 bits95_64 = DESIG_UID_95_64;
|
||||
result[0] = bits95_64;
|
||||
result[1] = bits63_32;
|
||||
result[2] = bits31_16 << 16 | bits15_0;
|
||||
/* Could also just return a pointer to the start? read it as they wish?
|
||||
*/
|
||||
u16 bits15_0 = DESIG_UID_15_0;
|
||||
u32 bits31_16 = DESIG_UID_31_16;
|
||||
u32 bits63_32 = DESIG_UID_63_32;
|
||||
u32 bits95_64 = DESIG_UID_95_64;
|
||||
result[0] = bits95_64;
|
||||
result[1] = bits63_32;
|
||||
result[2] = bits31_16 << 16 | bits15_0;
|
||||
}
|
||||
|
||||
void desig_get_unique_id_as_string(char *string,
|
||||
|
||||
Reference in New Issue
Block a user