@@ -617,7 +617,7 @@ int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_
617617 size_t data_length = QSPIF_SFDP_HEADER_SIZE;
618618 bd_addr_t addr = 0x0 ;
619619
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);
621621 if (status != QSPI_STATUS_OK) {
622622 tr_error (" Init - Read SFDP Failed" );
623623 return -1 ;
@@ -677,7 +677,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
677677{
678678 uint8_t param_table[SFDP_DEFAULT_BASIC_PARAMS_TABLE_SIZE_BYTES]; /* Up To 16 DWORDS = 64 Bytes */
679679
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);
681681 if (status != QSPI_STATUS_OK) {
682682 tr_error (" Init - Read SFDP First Table Failed" );
683683 return -1 ;
@@ -693,7 +693,7 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
693693 uint32_t density_bits = ((param_table[7 ] << 24 ) |
694694 (param_table[6 ] << 16 ) |
695695 (param_table[5 ] << 8 ) |
696- param_table[4 ]);
696+ param_table[4 ]);
697697 _device_size_bytes = (density_bits + 1 ) / 8 ;
698698
699699 // 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
11081108 // Issue instruction 66h to enable resets on the device
11091109 // Then issue instruction 99h to reset the device
11101110 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 );
11121112 if (qspi_status == QSPI_STATUS_OK) {
11131113 qspi_status = _qspi_send_general_command (0x99 , QSPI_NO_ADDRESS_COMMAND, // Send reset instruction
11141114 NULL , 0 , NULL , 0 );
@@ -1119,7 +1119,7 @@ int QSPIFBlockDevice::_sfdp_detect_reset_protocol_and_reset(uint8_t *basic_param
11191119 status = QSPIF_BD_ERROR_PARSING_FAILED;
11201120 }
11211121
1122- if (status == QSPIF_BD_ERROR_OK){
1122+ if (status == QSPIF_BD_ERROR_OK) {
11231123 if (false == _is_mem_ready ()) {
11241124 tr_error (" Device not ready, reset failed" );
11251125 status = QSPIF_BD_ERROR_READY_FAILED;
@@ -1198,8 +1198,8 @@ int QSPIFBlockDevice::_clear_block_protection()
11981198
11991199 /* Read Manufacturer ID (1byte), and Device ID (2bytes) */
12001200 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);
12031203 if (QSPI_STATUS_OK != status) {
12041204 tr_error (" Read Vendor ID Failed" );
12051205 return -1 ;
@@ -1523,8 +1523,8 @@ qspi_status_t QSPIFBlockDevice::_qspi_read_status_registers(uint8_t *reg_buffer)
15231523{
15241524 // Read Status Register 1
15251525 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 );
15281528 if (QSPI_STATUS_OK == status) {
15291529 tr_debug (" Reading Status Register 1 Success: value = 0x%x" , (int ) reg_buffer[0 ]);
15301530 } else {
0 commit comments