diff options
author | Huang Shijie <b32955@freescale.com> | 2014-01-02 22:01:40 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-11 01:42:30 -0400 |
commit | e004debdadf1a661dcd24e2a654e56b0a113e29e (patch) | |
tree | ad23d133afd05c937cd1f4f2e4b4a02c2e0b3f75 /include/linux/mtd | |
parent | bb77082fa2584f0855e614e99b5ffd40b9cf4251 (diff) |
mtd: nand: add "page" argument for read_subpage hook
Add the "page" argument for the read_subpage hook. With this argument,
the implementation of this hook could prints out more accurate information
for debugging.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/nand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index aa005e87d161..0747fef2bfc6 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
@@ -488,7 +488,7 @@ struct nand_ecc_ctrl { | |||
488 | int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, | 488 | int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, |
489 | uint8_t *buf, int oob_required, int page); | 489 | uint8_t *buf, int oob_required, int page); |
490 | int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, | 490 | int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, |
491 | uint32_t offs, uint32_t len, uint8_t *buf); | 491 | uint32_t offs, uint32_t len, uint8_t *buf, int page); |
492 | int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, | 492 | int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, |
493 | uint32_t offset, uint32_t data_len, | 493 | uint32_t offset, uint32_t data_len, |
494 | const uint8_t *data_buf, int oob_required); | 494 | const uint8_t *data_buf, int oob_required); |