Skip to contentSkip to conversation

mtd: nand: typo in nand_id_has_period() comments

PATCH In review Brian Norris 2 participants 3 messages Nov 15, 2012 – Dec 13, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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...

---
 drivers/mtd/nand/nand_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/nand_base.c +1 -1
index 4569174..c2af1e8 100644
@@ -2913,7 +2913,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)
Signature · 1 line
1.8.0
#2 lore raw
Quoted 8 lines · Brian Norris
Quoted 4 lines · Brian Norris

The simple example provided in the comments for nand_id_has_period() actually has a period of 3, not 2. Silly mistake...

Bump?

Ouch! Pushed to l2, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy