Skip to content

Commit d4d4f1b

Browse files
computersforpeacededekind
authored andcommitted
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>
1 parent 8204536 commit d4d4f1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/nand/nand_base.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2923,7 +2923,7 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip,
29232923
*
29242924
* Check if an ID string is repeated within a given sequence of bytes at
29252925
* specific repetition interval period (e.g., {0x20,0x01,0x7F,0x20} has a
2926-
* period of 2). This is a helper function for nand_id_len(). Returns non-zero
2926+
* period of 3). This is a helper function for nand_id_len(). Returns non-zero
29272927
* if the repetition has a period of @period; otherwise, returns zero.
29282928
*/
29292929
static int nand_id_has_period(u8 *id_data, int arrlen, int period)

0 commit comments

Comments
 (0)