diff options
author | Vitaly Wool <vwool@ru.mvista.com> | 2007-03-06 16:56:34 +0300 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-03-08 09:17:43 +0000 |
commit | 1f92267c51a514f35ad5b0fd46cb099c0980b679 (patch) | |
tree | 06101742bffb98e305dcf9db208e55ed89182d44 /drivers/mtd/nand/nand_base.c | |
parent | eee8abe5de9cbd936b51db292c8d3c406b0e79e7 (diff) | |
download | linux-1f92267c51a514f35ad5b0fd46cb099c0980b679.tar.gz linux-1f92267c51a514f35ad5b0fd46cb099c0980b679.tar.bz2 linux-1f92267c51a514f35ad5b0fd46cb099c0980b679.zip |
[MTD] [NAND] make oobavail public
During the MTD rework the oobavail parameter of mtd_info structure has become
private. This is not quite correct in terms of integrity and logic. If we have
means to write to OOB area, then we'd like to know upfront how many bytes out
of OOB are spare per page to be able to adapt to specific cases.
The patch inlined adds the public oobavail parameter.
Signed-off-by: Vitaly Wool <vwool@ru.mvista.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index acaf97bc80d1..6af37b8cff65 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2524,6 +2524,7 @@ int nand_scan_tail(struct mtd_info *mtd) for (i = 0; chip->ecc.layout->oobfree[i].length; i++) chip->ecc.layout->oobavail += chip->ecc.layout->oobfree[i].length; + mtd->oobavail = chip->ecc.layout->oobavail; /* * Set the number of read / write steps for one page depending on ECC |