contrib: loaders: align switch and case statements

The coding style requires the 'case' to be at the same indentation
level of its 'switch' statement.

Align the code accordingly.

While there:
- add space around operators;
- remove space after cast.

Skip the file
	contrib/firmware/angie/c/src/usb.c
as it's going to be modified by a patch already pending in gerrit.

No changes are reported by
	git log -p -w --ignore-blank-lines --patience

Change-Id: I0bebd6d0cc95ddecd5794cc4c12c8412b38691e9
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9046
Tested-by: jenkins
This commit is contained in:
Antonio Borneo
2025-07-26 10:36:26 +02:00
parent 302ce2b2ef
commit 83b92bc634
7 changed files with 331 additions and 331 deletions

View File

@@ -73,9 +73,9 @@ int main (void)
case OCL_PROBE:
dcc_wr(OCL_CMD_DONE | flash_init());
dcc_wr(0x100000); /* base */
dcc_wr(flash_page_count*flash_page_size); /* size */
dcc_wr(flash_page_count * flash_page_size); /* size */
dcc_wr(1); /* num_sectors */
dcc_wr(4096 | ((unsigned long) flash_page_size << 16)); /* buflen and bufalign */
dcc_wr(4096 | ((unsigned long)flash_page_size << 16)); /* buflen and bufalign */
break;
case OCL_ERASE_ALL:
dcc_wr(OCL_CMD_DONE | flash_erase_all());

View File

@@ -26,31 +26,31 @@ int flash_init(void)
/* AT91SAM7x32 */
flash_page_count = 256;
flash_page_size = 128;
flash_lock_pages = 256/8;
flash_lock_pages = 256 / 8;
break;
case 5:
/* AT91SAM7x64 */
flash_page_count = 512;
flash_page_size = 128;
flash_lock_pages = 512/16;
flash_lock_pages = 512 / 16;
break;
case 7:
/* AT91SAM7x128*/
flash_page_count = 512;
flash_page_size = 256;
flash_lock_pages = 512/8;
flash_lock_pages = 512 / 8;
break;
case 9:
/* AT91SAM7x256 */
flash_page_count = 1024;
flash_page_size = 256;
flash_lock_pages = 1024/16;
flash_lock_pages = 1024 / 16;
break;
case 10:
/* AT91SAM7x512 */
flash_page_count = 2048;
flash_page_size = 256;
flash_lock_pages = 2048/32;
flash_lock_pages = 2048 / 32;
break;
default:
return FLASH_STAT_INITE;