diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-05-06 18:16:17 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-07-08 22:08:08 +0100 |
commit | e2315ccffd31757785130c3bf549a87d9be1689a (patch) | |
tree | 697a35dd3b791dfad50c400d47820be07ebc84c8 /src/flash/nor | |
parent | bf346292942868db6ed8a71e2c4c8b8359d6d300 (diff) | |
download | riscv-openocd-e2315ccffd31757785130c3bf549a87d9be1689a.zip riscv-openocd-e2315ccffd31757785130c3bf549a87d9be1689a.tar.gz riscv-openocd-e2315ccffd31757785130c3bf549a87d9be1689a.tar.bz2 |
coding style: fix space separation
The checkpatch script from Linux kernel v5.1 complains about using
space before comma, before semicolon and between function name and
open parenthesis.
Fix them!
Issue identified using the command
find src/ -type f -exec ./tools/scripts/checkpatch.pl \
-q --types SPACING -f {} \;
The patch only changes amount and position of whitespace, thus
the following commands show empty diff
git diff -w
git log -w -p
git log -w --stat
Change-Id: I1062051d7f97d59922847f5061c6d6811742d30e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5627
Tested-by: jenkins
Diffstat (limited to 'src/flash/nor')
-rw-r--r-- | src/flash/nor/at91sam3.c | 2 | ||||
-rw-r--r-- | src/flash/nor/fespi.c | 6 | ||||
-rw-r--r-- | src/flash/nor/lpcspifi.c | 4 | ||||
-rw-r--r-- | src/flash/nor/niietcm4.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c index 4348911..c8c4afe 100644 --- a/src/flash/nor/at91sam3.c +++ b/src/flash/nor/at91sam3.c @@ -1923,7 +1923,7 @@ static const struct sam3_chip_details all_sam3_details[] = { .pChip = NULL, .pBank = NULL, .bank_number = 1, - .base_address = FLASH_BANK1_BASE_512K_AX , + .base_address = FLASH_BANK1_BASE_512K_AX, .controller_address = 0x400e0c00, .flash_wait_states = 6, /* workaround silicon bug */ .present = 1, diff --git a/src/flash/nor/fespi.c b/src/flash/nor/fespi.c index 4afa1b8..6b2793f 100644 --- a/src/flash/nor/fespi.c +++ b/src/flash/nor/fespi.c @@ -136,9 +136,9 @@ struct fespi_target { /* TODO !!! What is the right naming convention here? */ static const struct fespi_target target_devices[] = { /* name, tap_idcode, ctrl_base */ - { "Freedom E310-G000 SPI Flash", 0x10e31913 , 0x10014000 }, - { "Freedom E310-G002 SPI Flash", 0x20000913 , 0x10014000 }, - { NULL, 0, 0 } + { "Freedom E310-G000 SPI Flash", 0x10e31913, 0x10014000 }, + { "Freedom E310-G002 SPI Flash", 0x20000913, 0x10014000 }, + { NULL, 0, 0 } }; FLASH_BANK_COMMAND_HANDLER(fespi_flash_bank_command) diff --git a/src/flash/nor/lpcspifi.c b/src/flash/nor/lpcspifi.c index 13bb1f0..dd1c63d 100644 --- a/src/flash/nor/lpcspifi.c +++ b/src/flash/nor/lpcspifi.c @@ -216,7 +216,7 @@ static int lpcspifi_set_hw_mode(struct flash_bank *bank) /* Run the algorithm */ LOG_DEBUG("Running SPIFI init algorithm"); - retval = target_run_algorithm(target, 0 , NULL, 2, reg_params, + retval = target_run_algorithm(target, 0, NULL, 2, reg_params, spifi_init_algorithm->address, spifi_init_algorithm->address + sizeof(spifi_init_code) - 2, 1000, &armv7m_info); @@ -550,7 +550,7 @@ static int lpcspifi_erase(struct flash_bank *bank, unsigned int first, buf_set_u32(reg_params[3].value, 0, 32, bank->sectors[first].size); /* Run the algorithm */ - retval = target_run_algorithm(target, 0 , NULL, 4, reg_params, + retval = target_run_algorithm(target, 0, NULL, 4, reg_params, erase_algorithm->address, erase_algorithm->address + sizeof(lpcspifi_flash_erase_code) - 4, 3000*(last - first + 1), &armv7m_info); diff --git a/src/flash/nor/niietcm4.c b/src/flash/nor/niietcm4.c index 1ab0a5a..0854038 100644 --- a/src/flash/nor/niietcm4.c +++ b/src/flash/nor/niietcm4.c @@ -1659,7 +1659,7 @@ static int niietcm4_probe_k1921vk01t(struct flash_bank *bank) niietcm4_info->extmem_boot_pin, niietcm4_info->extmem_boot_altfunc, niietcm4_info->extmem_boot ? "enable" : "disable"); - } else{ + } else { bank->size = 0x100000; bank->num_sectors = 128; |