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:
Dominik Ermel 2020-06-03 18:33:09 +00:00 committed by Carles Cufí
commit 076282a117
4 changed files with 39 additions and 14 deletions

View file

@ -57,6 +57,7 @@ struct nvs_fs {
struct k_mutex nvs_lock;
struct device *flash_device;
const struct flash_parameters *flash_parameters;
};
/**