Skip to content

Commit ba71b09

Browse files
author
Veijo Pesonen
committed
astyle fixes
1 parent 3ee153a commit ba71b09

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,13 +857,13 @@ int QSPIFBlockDevice::_sfdp_detect_erase_types_inst_and_size(uint8_t *basic_para
857857
for (int i_ind = 0; i_ind < 4; i_ind++) {
858858
smptbl.erase_type_inst_arr[i_ind] = QSPI_NO_INST; // Default for unsupported type
859859
smptbl.erase_type_size_arr[i_ind] = 1
860-
<< basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_ERASE_TYPE_1_SIZE_BYTE + 2 * i_ind]; // Size is 2^N where N is the table value
860+
<< basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_ERASE_TYPE_1_SIZE_BYTE + 2 * i_ind]; // Size is 2^N where N is the table value
861861
tr_debug("Erase Type(A) %d - Inst: 0x%xh, Size: %d", (i_ind + 1), smptbl.erase_type_inst_arr[i_ind],
862862
smptbl.erase_type_size_arr[i_ind]);
863863
if (smptbl.erase_type_size_arr[i_ind] > 1) {
864864
// if size==1 type is not supported
865865
smptbl.erase_type_inst_arr[i_ind] = basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_ERASE_TYPE_1_BYTE
866-
+ 2 * i_ind];
866+
+ 2 * i_ind];
867867

868868
if ((smptbl.erase_type_size_arr[i_ind] < smptbl.regions_min_common_erase_size)
869869
|| (smptbl.regions_min_common_erase_size == 0)) {

components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ int SPIFBlockDevice::_sfdp_detect_erase_types_inst_and_size(uint8_t *basic_param
696696
for (int i_ind = 0; i_ind < 4; i_ind++) {
697697
smptbl.erase_type_inst_arr[i_ind] = 0xff; //0xFF default for unsupported type
698698
smptbl.erase_type_size_arr[i_ind] = local_math_power(
699-
2, basic_param_table_ptr[SPIF_BASIC_PARAM_ERASE_TYPE_1_SIZE_BYTE + 2 * i_ind]); // Size given as 2^N
699+
2, basic_param_table_ptr[SPIF_BASIC_PARAM_ERASE_TYPE_1_SIZE_BYTE + 2 * i_ind]); // Size given as 2^N
700700
tr_debug("Erase Type(A) %d - Inst: 0x%xh, Size: %d", (i_ind + 1), smptbl.erase_type_inst_arr[i_ind],
701701
smptbl.erase_type_size_arr[i_ind]);
702702
if (smptbl.erase_type_size_arr[i_ind] > 1) {

drivers/source/SFDP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int sfdp_parse_headers(Callback<int(bd_addr_t, void *, bd_size_t)> sfdp_reader,
134134
return 0;
135135
}
136136

137-
int sfdp_parse_sector_map_table(Callback<int(bd_addr_t, void*, bd_size_t)> sfdp_reader, sfdp_smptbl_info &smptbl)
137+
int sfdp_parse_sector_map_table(Callback<int(bd_addr_t, void *, bd_size_t)> sfdp_reader, sfdp_smptbl_info &smptbl)
138138
{
139139
uint8_t sector_map_table[SFDP_BASIC_PARAMS_TBL_SIZE]; /* Up To 20 DWORDS = 80 Bytes */
140140
uint32_t tmp_region_size = 0;

0 commit comments

Comments
 (0)