subsys/fs/nvs: Use flash_get_parameters() to get erase value
Use new flash API call to obtain erase value instead of relaying on hardcoded literals. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
parent
6ea6321586
commit
076282a117
4 changed files with 39 additions and 14 deletions
|
@ -57,6 +57,7 @@ struct nvs_fs {
|
|||
|
||||
struct k_mutex nvs_lock;
|
||||
struct device *flash_device;
|
||||
const struct flash_parameters *flash_parameters;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue