SFDP: Set region count to 1 for no sector map
A flash device with no sector map table has uniform sectors, and we
treat the whole flash as one region. In this case the function
`sfdp_parse_sector_map_table()` sets the single region's size and high
boundary accordingly, but it lacks setting of region count to 1, so
users of the SFDP parser may not get the correct number of regions.
This commit fixes the issue.
ls
1 parent 6869425 commit 651099225e925af16ed673af7cbd9b513e82d887
@Lingkai Dong Lingkai Dong authored on 4 Aug 2021
Showing 1 changed file
View
storage/blockdevice/source/SFDP.cpp