Skip to content

Commit ed76723

Browse files
nvlsianpuioannisg
authored andcommitted
include/storage/flash_map: describe return values of flash_area_open()
This patch adds description for possible flash_area_open() return values. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent b94dbc5 commit ed76723

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/storage/flash_map.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ int flash_area_check_int_sha256(const struct flash_area *fa,
111111
* @param[in] id ID of the flash partition.
112112
* @param[out] fa Pointer which has to reference flash_area. If
113113
* @p ID is unknown, it will be NULL on output.
114+
*
115+
* @return 0 on success, -EACCES if the flash_map is not available ,
116+
* -ENOENT if @p ID is unknown.
114117
*/
115118
int flash_area_open(uint8_t id, const struct flash_area **fa);
116119

0 commit comments

Comments
 (0)