@@ -48,8 +48,8 @@ typedef int (*flash_api_write_protection)(struct device *dev, bool enable);
4848 * @brief Retrieve a flash device's layout.
4949 *
5050 * A flash device layout is a run-length encoded description of the
51- * pages on the device. (Here, "pages " means the smallest erasable
52- * areas on the flash device.)
51+ * pages on the device. (Here, "page " means the smallest erasable
52+ * area on the flash device.)
5353 *
5454 * For flash memories which have uniform page sizes, this routine
5555 * returns an array of length 1, which specifies the page size and
@@ -191,7 +191,7 @@ struct flash_pages_info {
191191
192192#if defined(CONFIG_FLASH_PAGE_LAYOUT )
193193/**
194- * @brief Get size and start offset of flash page at certain flash offset.
194+ * @brief Get the size and start offset of flash page at certain flash offset.
195195 *
196196 * @param dev flash device
197197 * @param offset Offset within the page
@@ -203,7 +203,7 @@ __syscall int flash_get_page_info_by_offs(struct device *dev, off_t offset,
203203 struct flash_pages_info * info );
204204
205205/**
206- * @brief Get size and start offset of flash page of certain index.
206+ * @brief Get the size and start offset of flash page of certain index.
207207 *
208208 * @param dev flash device
209209 * @param page_index Index of the page. Index are counted from 0.
@@ -215,7 +215,7 @@ __syscall int flash_get_page_info_by_idx(struct device *dev, u32_t page_index,
215215 struct flash_pages_info * info );
216216
217217/**
218- * @brief Get number of flash pages.
218+ * @brief Get the total number of flash pages.
219219 *
220220 * @param dev flash device
221221 *
@@ -236,7 +236,7 @@ __syscall size_t flash_get_page_count(struct device *dev);
236236typedef bool (* flash_page_cb )(const struct flash_pages_info * info , void * data );
237237
238238/**
239- * @brief Iterate over flash pages on a device
239+ * @brief Iterate over all flash pages on a device
240240 *
241241 * This routine iterates over all flash pages on the given device,
242242 * ordered by increasing start offset. For each page, it invokes the
@@ -253,13 +253,13 @@ void flash_page_foreach(struct device *dev, flash_page_cb cb, void *data);
253253/**
254254 * @brief Get the minimum write block size supported by the driver
255255 *
256- * The Write block size supported by the driver might defer from the write
256+ * The write block size supported by the driver might differ from the write
257257 * block size of memory used because the driver might implements write-modify
258258 * algorithm.
259259 *
260260 * @param dev flash device
261261 *
262- * @return write block size in Bytes .
262+ * @return write block size in bytes .
263263 */
264264__syscall size_t flash_get_write_block_size (struct device * dev );
265265
0 commit comments