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
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user