Skip to content

Commit 21b94ba

Browse files
nzmichaelhAnas Nashif
authored andcommitted
flash: minor documentation improvements.
This patch makes minor improvements to the flash documentation: * spi -> SPI * Capitialise the first word in a sentance * Adding the, and, all, etc where appropriate. Signed-off-by: Michael Hope <[email protected]>
1 parent b005a7f commit 21b94ba

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

drivers/flash/Kconfig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Kconfig - flash driver configuration options
1+
# Kconfig - Flash driver configuration options
22

33
#
44
# Copyright (c) 2016 Intel Corporation
@@ -7,11 +7,11 @@
77
#
88

99
#
10-
# flash driver
10+
# Flash driver
1111
#
1212
menuconfig FLASH
1313
bool
14-
prompt "flash hardware support"
14+
prompt "Flash hardware support"
1515
default n
1616
help
1717
Enable support for the flash hardware.
@@ -30,13 +30,13 @@ config SPI_FLASH_W25QXXDV
3030

3131
config SPI_FLASH_W25QXXDV_SPI_NAME
3232
string
33-
prompt "spi controller device name"
33+
prompt "SPI controller device name"
3434
depends on SPI_FLASH_W25QXXDV
3535
default ""
3636

3737
config SPI_FLASH_W25QXXDV_DRV_NAME
3838
string
39-
prompt "spi flash device name"
39+
prompt "SPI flash device name"
4040
depends on SPI_FLASH_W25QXXDV
4141
default "W25QXXDV"
4242

@@ -59,14 +59,14 @@ config SPI_FLASH_W25QXXDV_SPI_FREQ_0
5959
clock.
6060

6161
config SPI_FLASH_W25QXXDV_SPI_SLAVE
62-
int "SPI slave linked to spi flash"
62+
int "SPI slave linked to SPI flash"
6363
depends on SPI_FLASH_W25QXXDV
6464
help
6565
This option sets the SPI slave number the SPI controller has to switch
6666
to when dealing with WinBond SPI flash chip.
6767

6868
config SPI_FLASH_W25QXXDV_FLASH_SIZE
69-
int "flash size in bytes"
69+
int "Flash size in bytes"
7070
depends on SPI_FLASH_W25QXXDV
7171
default 2097152
7272
help
@@ -96,7 +96,7 @@ config SOC_FLASH_QMSI_DEV_NAME
9696
Specify the device name for the flash driver.
9797

9898
config SOC_FLASH_QMSI_CLK_COUNT_US
99-
int "system clk count per microsecond"
99+
int "System clk count per microsecond"
100100
depends on SOC_FLASH_QMSI
101101
default 32
102102
help

include/flash.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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);
236236
typedef 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

Comments
 (0)