Skip to content

Commit

Permalink
zephyr: storage: flash_map: Fix parameter order
Browse files Browse the repository at this point in the history
Two functions have parameters in the wrong order in the function
description, fix them to the correct order

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm authored and kartben committed Jan 4, 2025
1 parent 7ebb593 commit 67597cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/zephyr/storage/flash_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ uint32_t flash_area_align(const struct flash_area *fa);
* Retrieve info about sectors within the area.
*
* @param[in] fa_id Given flash area ID
* @param[out] sectors buffer for sectors data
* @param[in,out] count On input Capacity of @p sectors, on output number of
* sectors Retrieved.
* @param[out] sectors buffer for sectors data
*
* @return 0 on success, negative errno code on fail. Especially returns
* -ENOMEM if There are too many flash pages on the flash_area to fit in the
Expand All @@ -257,9 +257,9 @@ int flash_area_get_sectors(int fa_id, uint32_t *count,
* Retrieve info about sectors within the area.
*
* @param[in] fa pointer to flash area object.
* @param[out] sectors buffer for sectors data
* @param[in,out] count On input Capacity of @p sectors, on output number of
* sectors retrieved.
* @param[out] sectors buffer for sectors data
*
* @return 0 on success, negative errno code on fail. Especially returns
* -ENOMEM if There are too many flash pages on the flash_area to fit in the
Expand Down

0 comments on commit 67597cf

Please sign in to comment.