Skip to content
Commit 4b2e55f3 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

boot: bootutil: drop flash_area_read_is_empty

Removes the current `flash_area_read_is_empty` which lacked a bit of
clarity in its naming and error handling, as well as requiring an
extra API in the flash map, and switches to using an internal function
`bootutil_buffer_is_erased`.

Code that was previously using `flash_area_read_is_empty` must now be
updated to do a `flash_area_read` followed by a call to
`bootutil_buffer_is_erased` with the read buffer.

The proposal was previously discussed here:

https://github.com/zephyrproject-rtos/zephyr/pull/28519



Signed-off-by: default avatarFabio Utzig <fabio.utzig@nordicsemi.no>
parent 296949ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment