Skip to content

Commit

Permalink
Merge pull request #20466 from FlapKap/drivers/mtd-docupdate
Browse files Browse the repository at this point in the history
drivers/mtd: update docs to match implementation
  • Loading branch information
benpicco authored Mar 13, 2024
2 parents d3ec7cf + 9ba76c3 commit db51ad7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/include/mtd.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ int mtd_read(mtd_dev_t *mtd, void *dest, uint32_t addr, uint32_t count);
* @param[in] offset offset from the start of the page (in bytes)
* @param[in] size the number of bytes to read
*
* @retval n number of bytes read on success
* @retval 0 on success
* @retval <0 value on error
* @retval -ENODEV if @p mtd is not a valid device
* @retval -ENOTSUP if operation is not supported on @p mtd
Expand Down Expand Up @@ -412,7 +412,7 @@ int mtd_write(mtd_dev_t *mtd, const void *src, uint32_t addr, uint32_t count);
* @param[in] offset byte offset from the start of the page
* @param[in] size the number of bytes to write
*
* @retval n number of bytes written on success
* @retval 0 on success
* @retval <0 value on error
* @retval -ENODEV if @p mtd is not a valid device
* @retval -ENOTSUP if operation is not supported on @p mtd
Expand Down Expand Up @@ -442,7 +442,7 @@ int mtd_write_page_raw(mtd_dev_t *mtd, const void *src, uint32_t page,
* @param[in] offset byte offset from the start of the page
* @param[in] size the number of bytes to write
*
* @retval n number of bytes written on success
* @retval 0 on success
* @retval <0 value on error
* @retval -ENODEV if @p mtd is not a valid device
* @retval -ENOTSUP if operation is not supported on @p mtd
Expand Down Expand Up @@ -500,7 +500,7 @@ int mtd_erase_sector(mtd_dev_t *mtd, uint32_t sector, uint32_t num);
* @param[in] sector Sector number to start writing to
* @param[in] num Number of sectors to write
*
* @retval n number of bytes written on success
* @retval 0 on success
* @retval <0 value on error
* @retval -ENODEV if @p mtd is not a valid device
* @retval -ENOTSUP if operation is not supported on @p mtd
Expand Down

0 comments on commit db51ad7

Please sign in to comment.