commit | 56d5486fbf1b5fac8b21c9f385a9308f4890af74 | [log] [tgz] |
---|---|---|
author | Gerard Marull-Paretas <gerard.marull@nordicsemi.no> | Mon Feb 28 10:51:06 2022 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Mar 01 12:46:34 2022 +0100 |
tree | ccfa50debf74738dc997681816763db3ecf8c33b | |
parent | 0e8f556b1765d077d80ed12fc3b8317ec76c2eb9 [diff] |
fs: nvs: introduce nvs_mount and deprecate nvs_init Add a new API call to replace nvs_init: nvs_mount. The new API does the same as nvs_init except that it assumes to be provided with a valid flash device via `struct nvs_fs` `flash_device` field. Previously, it was not possible to avoid the runtime overhead of device_get_binding() even if the flash device was known at compile time. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>