flash: nor: 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.

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

Change-Id: I6be44efd5189b671caabcf6753bb82ef44521440
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9034
Tested-by: jenkins
This commit is contained in:
Antonio Borneo
2025-06-28 11:21:26 +02:00
parent ac527e7372
commit 36a2b6c6f8
25 changed files with 1967 additions and 1975 deletions

View File

@@ -282,19 +282,19 @@ static int sam4l_probe(struct flash_bank *bank)
chip->ram_kb = sam4l_ram_sizes[0xF & (id >> 16)];
switch (0xF & (id >> 8)) {
case 0x07:
chip->flash_kb = 128;
break;
case 0x09:
chip->flash_kb = 256;
break;
case 0x0A:
chip->flash_kb = 512;
break;
default:
LOG_ERROR("Unknown flash size (chip ID is %08" PRIx32 "), assuming 128K", id);
chip->flash_kb = 128;
break;
case 0x07:
chip->flash_kb = 128;
break;
case 0x09:
chip->flash_kb = 256;
break;
case 0x0A:
chip->flash_kb = 512;
break;
default:
LOG_ERROR("Unknown flash size (chip ID is %08" PRIx32 "), assuming 128K", id);
chip->flash_kb = 128;
break;
}
/* Retrieve the Flash parameters */