Skip to content

Commit 6a69040

Browse files
author
Veijo Pesonen
committed
QSPIFBlockDevice: drops unnecessary wrapper function
1 parent 8dc15ee commit 6a69040

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ int QSPIFBlockDevice::init()
249249
}
250250

251251
/**************************** Parse SFDP Header ***********************************/
252-
if (0 != _sfdp_parse_sfdp_headers(hdr_info)) {
252+
if (sfdp_parse_headers(callback(this, &QSPIFBlockDevice::_qspi_send_read_sfdp_command), hdr_info) < 0) {
253253
tr_error("Init - Parse SFDP Headers Failed");
254254
status = QSPIF_BD_ERROR_PARSING_FAILED;
255255
goto exit_point;
@@ -627,11 +627,6 @@ int QSPIFBlockDevice::remove_csel_instance(PinName csel)
627627
/*********************************************************/
628628
/********** SFDP Parsing and Detection Functions *********/
629629
/*********************************************************/
630-
int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(mbed::sfdp_hdr_info &hdr_info)
631-
{
632-
return sfdp_parse_headers(callback(this, &QSPIFBlockDevice::_qspi_send_read_sfdp_command), hdr_info);
633-
}
634-
635630
int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, size_t basic_table_size)
636631
{
637632
uint8_t param_table[SFDP_DEFAULT_BASIC_PARAMS_TABLE_SIZE_BYTES]; /* Up To 16 DWORDS = 64 Bytes */

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,6 @@ class QSPIFBlockDevice : public mbed::BlockDevice {
318318
/****************************************/
319319
/* SFDP Detection and Parsing Functions */
320320
/****************************************/
321-
// Parse SFDP Headers and retrieve Basic Param and Sector Map Tables (if exist)
322-
int _sfdp_parse_sfdp_headers(mbed::sfdp_hdr_info &hdr_info);
323-
324321
// Parse and Detect required Basic Parameters from Table
325322
int _sfdp_parse_basic_param_table(uint32_t basic_table_addr, size_t basic_table_size);
326323

0 commit comments

Comments
 (0)