summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorBrian Norris2012-11-15 06:54:20 +0100
committerArtem Bityutskiy2012-12-13 12:39:45 +0100
commitd4d4f1bf6a343b25220fdcdf559fd593dd3e25a7 (patch)
tree66ec86175153fc762be4c87a125e64a74ae85fd9 /drivers/mtd/nand/nand_base.c
parentmtd: nand/gpio: use io{read,write}*_rep accessors (diff)
downloadkernel-qcow2-linux-d4d4f1bf6a343b25220fdcdf559fd593dd3e25a7.tar.gz
kernel-qcow2-linux-d4d4f1bf6a343b25220fdcdf559fd593dd3e25a7.tar.xz
kernel-qcow2-linux-d4d4f1bf6a343b25220fdcdf559fd593dd3e25a7.zip
mtd: nand: typo in nand_id_has_period() comments
The simple example provided in the comments for nand_id_has_period() actually has a period of 3, not 2. Silly mistake... Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 0ac49ca58524..8323ac991ad1 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2923,7 +2923,7 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip,
*
* Check if an ID string is repeated within a given sequence of bytes at
* specific repetition interval period (e.g., {0x20,0x01,0x7F,0x20} has a
- * period of 2). This is a helper function for nand_id_len(). Returns non-zero
+ * period of 3). This is a helper function for nand_id_len(). Returns non-zero
* if the repetition has a period of @period; otherwise, returns zero.
*/
static int nand_id_has_period(u8 *id_data, int arrlen, int period)