diff options
author | Vitaly Wool <vwool@ru.mvista.com> | 2007-03-06 08:56:34 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-03-08 04:17:43 -0500 |
commit | 1f92267c51a514f35ad5b0fd46cb099c0980b679 (patch) | |
tree | 06101742bffb98e305dcf9db208e55ed89182d44 /drivers/mtd/mtdpart.c | |
parent | eee8abe5de9cbd936b51db292c8d3c406b0e79e7 (diff) |
[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/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 633def3fb08..01e4afff42b 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -338,6 +338,7 @@ int add_mtd_partitions(struct mtd_info *master, | |||
338 | slave->mtd.size = parts[i].size; | 338 | slave->mtd.size = parts[i].size; |
339 | slave->mtd.writesize = master->writesize; | 339 | slave->mtd.writesize = master->writesize; |
340 | slave->mtd.oobsize = master->oobsize; | 340 | slave->mtd.oobsize = master->oobsize; |
341 | slave->mtd.oobavail = master->oobavail; | ||
341 | slave->mtd.subpage_sft = master->subpage_sft; | 342 | slave->mtd.subpage_sft = master->subpage_sft; |
342 | 343 | ||
343 | slave->mtd.name = parts[i].name; | 344 | slave->mtd.name = parts[i].name; |