diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-09 14:14:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-10 08:18:39 +0200 |
commit | ec21c891129ed2bb8d2697f7b5482d0cd0926730 (patch) | |
tree | b34362be07efc97e26f514ba6d48052db072dc82 /include/linux | |
parent | 7ba65d24173a761c069198fc69aa2550840141ef (diff) | |
download | barebox-ec21c891129ed2bb8d2697f7b5482d0cd0926730.tar.gz barebox-ec21c891129ed2bb8d2697f7b5482d0cd0926730.tar.xz |
mtd: nand: Pass page argument to read_subpage hook
Similar to what the kernel does in e004debda (mtd: nand: add "page" argument for
read_subpage hook).
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-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 5beec39b75..dfb94d7872 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -352,7 +352,7 @@ struct nand_ecc_ctrl { int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page); int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, - uint32_t offs, uint32_t len, uint8_t *buf); + uint32_t offs, uint32_t len, uint8_t *buf, int page); int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, uint32_t offset, uint32_t data_len, const uint8_t *data_buf, int oob_required); |