@@ -617,7 +617,7 @@ int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_
617
617
size_t data_length = QSPIF_SFDP_HEADER_SIZE;
618
618
bd_addr_t addr = 0x0 ;
619
619
620
- qspi_status_t status = _qspi_send_read_sfdp_command (addr, (char *) sfdp_header, data_length);
620
+ qspi_status_t status = _qspi_send_read_sfdp_command (addr, (char *) sfdp_header, data_length);
621
621
if (status != QSPI_STATUS_OK) {
622
622
tr_error (" Init - Read SFDP Failed" );
623
623
return -1 ;
@@ -677,7 +677,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
677
677
{
678
678
uint8_t param_table[SFDP_DEFAULT_BASIC_PARAMS_TABLE_SIZE_BYTES]; /* Up To 16 DWORDS = 64 Bytes */
679
679
680
- qspi_status_t status = _qspi_send_read_sfdp_command (basic_table_addr, (char *) param_table, basic_table_size);
680
+ qspi_status_t status = _qspi_send_read_sfdp_command (basic_table_addr, (char *) param_table, basic_table_size);
681
681
if (status != QSPI_STATUS_OK) {
682
682
tr_error (" Init - Read SFDP First Table Failed" );
683
683
return -1 ;
@@ -693,7 +693,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
693
693
uint32_t density_bits = ((param_table[7 ] << 24 ) |
694
694
(param_table[6 ] << 16 ) |
695
695
(param_table[5 ] << 8 ) |
696
- param_table[4 ]);
696
+ param_table[4 ]);
697
697
_device_size_bytes = (density_bits + 1 ) / 8 ;
698
698
699
699
// Set Page Size (QSPI write must be done on Page limits)
@@ -1108,7 +1108,7 @@ int QSPIFBlockDevice::_sfdp_detect_reset_protocol_and_reset(uint8_t *basic_param
1108
1108
// Issue instruction 66h to enable resets on the device
1109
1109
// Then issue instruction 99h to reset the device
1110
1110
qspi_status_t qspi_status = _qspi_send_general_command (0x66 , QSPI_NO_ADDRESS_COMMAND, // Send reset enable instruction
1111
- NULL , 0 , NULL , 0 );
1111
+ NULL , 0 , NULL , 0 );
1112
1112
if (qspi_status == QSPI_STATUS_OK) {
1113
1113
qspi_status = _qspi_send_general_command (0x99 , QSPI_NO_ADDRESS_COMMAND, // Send reset instruction
1114
1114
NULL , 0 , NULL , 0 );
@@ -1119,7 +1119,7 @@ int QSPIFBlockDevice::_sfdp_detect_reset_protocol_and_reset(uint8_t *basic_param
1119
1119
status = QSPIF_BD_ERROR_PARSING_FAILED;
1120
1120
}
1121
1121
1122
- if (status == QSPIF_BD_ERROR_OK){
1122
+ if (status == QSPIF_BD_ERROR_OK) {
1123
1123
if (false == _is_mem_ready ()) {
1124
1124
tr_error (" Device not ready, reset failed" );
1125
1125
status = QSPIF_BD_ERROR_READY_FAILED;
@@ -1198,8 +1198,8 @@ int QSPIFBlockDevice::_clear_block_protection()
1198
1198
1199
1199
/* Read Manufacturer ID (1byte), and Device ID (2bytes) */
1200
1200
qspi_status_t status = _qspi_send_general_command (QSPIF_INST_RDID, QSPI_NO_ADDRESS_COMMAND,
1201
- NULL , 0 ,
1202
- (char *) vendor_device_ids, QSPI_RDID_DATA_LENGTH);
1201
+ NULL , 0 ,
1202
+ (char *) vendor_device_ids, QSPI_RDID_DATA_LENGTH);
1203
1203
if (QSPI_STATUS_OK != status) {
1204
1204
tr_error (" Read Vendor ID Failed" );
1205
1205
return -1 ;
@@ -1523,8 +1523,8 @@ qspi_status_t QSPIFBlockDevice::_qspi_read_status_registers(uint8_t *reg_buffer)
1523
1523
{
1524
1524
// Read Status Register 1
1525
1525
qspi_status_t status = _qspi_send_general_command (QSPIF_INST_RSR1, QSPI_NO_ADDRESS_COMMAND,
1526
- NULL , 0 ,
1527
- (char *) ®_buffer[0 ], 1 );
1526
+ NULL , 0 ,
1527
+ (char *) ®_buffer[0 ], 1 );
1528
1528
if (QSPI_STATUS_OK == status) {
1529
1529
tr_debug (" Reading Status Register 1 Success: value = 0x%x" , (int ) reg_buffer[0 ]);
1530
1530
} else {
0 commit comments