Skip to content

Commit f51600c

Browse files
author
Veijo Pesonen
committed
SPIFBlockDevice: drops unnecessary wrapper function
1 parent 5772266 commit f51600c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ int SPIFBlockDevice::init()
175175
}
176176

177177
/**************************** Parse SFDP Header ***********************************/
178-
if (0 != _sfdp_parse_sfdp_headers(hdr_info)) {
178+
if (0 != sfdp_parse_headers(callback(this, &SPIFBlockDevice::_spi_send_read_sfdp_command), hdr_info)) {
179179
tr_error("init - Parse SFDP Headers Failed");
180180
status = SPIF_BD_ERROR_PARSING_FAILED;
181181
goto exit_point;
@@ -665,11 +665,6 @@ int SPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, si
665665
return 0;
666666
}
667667

668-
int SPIFBlockDevice::_sfdp_parse_sfdp_headers(sfdp_hdr_info &hdr_info)
669-
{
670-
return sfdp_parse_headers(callback(this, &SPIFBlockDevice::_spi_send_read_sfdp_command), hdr_info);
671-
}
672-
673668
unsigned int SPIFBlockDevice::_sfdp_detect_page_size(uint8_t *basic_param_table_ptr, int basic_param_table_size)
674669
{
675670
unsigned int page_size = SPIF_DEFAULT_PAGE_SIZE;

components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,6 @@ class SPIFBlockDevice : public mbed::BlockDevice {
229229
// Send SFDP Read command to Driver
230230
int _spi_send_read_sfdp_command(mbed::bd_addr_t addr, void *rx_buffer, mbed::bd_size_t rx_length);
231231

232-
// Parse SFDP Headers and retrieve Basic Param and Sector Map Tables (if exist)
233-
int _sfdp_parse_sfdp_headers(mbed::sfdp_hdr_info &hdr_info);
234-
235232
// Parse and Detect required Basic Parameters from Table
236233
int _sfdp_parse_basic_param_table(uint32_t basic_table_addr, size_t basic_table_size);
237234

0 commit comments

Comments
 (0)