Skip to content

Commit 5db08ca

Browse files
vmsh0carlescufi
authored andcommitted
doc: flash: fix direction for flash_area_write src parameter
Change the `src` parameter direction from 'out' to 'in' for the flash_area_write function, since the src data buffer is the data source for the flash write and thus an input parameter Fixes zephyrproject-rtos#57996 Signed-off-by: Riccardo Paolo Bestetti <[email protected]>
1 parent f3fdb1f commit 5db08ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/storage/flash_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ int flash_area_read(const struct flash_area *fa, off_t off, void *dst,
162162
*
163163
* @param[in] fa Flash area
164164
* @param[in] off Offset relative from beginning of flash area to write
165-
* @param[out] src Buffer with data to be written
165+
* @param[in] src Buffer with data to be written
166166
* @param[in] len Number of bytes to write
167167
*
168168
* @return 0 on success, negative errno code on fail.

0 commit comments

Comments
 (0)