Skip to content

Commit

Permalink
include/drivers/flash: correction on the unrestricted alignment of wr…
Browse files Browse the repository at this point in the history
…ites

Telling that all the driver supports unaligned writes was and
is not true. Drivers only have to support any source buffer.

This fix message introduced by #23628

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  • Loading branch information
nvlsianpu authored and carlescufi committed Sep 10, 2020
1 parent 0023d3f commit 6fe1fde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/drivers/flash.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ static inline int z_impl_flash_read(const struct device *dev, off_t offset,
* @brief Write buffer into flash memory.
*
* All flash drivers support a source buffer located either in RAM or
* SoC flash, without alignment restrictions on the source address, or
* write size or offset.
* SoC flash, without alignment restrictions on the source address.
* Write size and offset must be multiples of the minimum write block size
* supported by the driver.
*
* Prior to the invocation of this API, the flash_write_protection_set needs
* to be called first to disable the write protection.
Expand Down

0 comments on commit 6fe1fde

Please sign in to comment.