aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-30 21:45:45 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:57:44 -0400
commit4a89ff885ff9f64ea62669100766e10e4e257c6e (patch)
tree66d7251fbfcc208e883271e7defd215b71d69af7 /include/linux
parent4180f24a7bff3aa7978e3785d0edd5dcc4af9049 (diff)
mtd: nand: kill member `ops' of `struct nand_chip'
The nand_chip.ops field is a struct that is passed around globally with no particular reason. Every time it is used, it could just as easily be replaced with a local struct that is updated on each operation. So make it local. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/nand.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 0b3d464cba13..904131bab501 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -427,7 +427,6 @@ struct nand_buffers {
427 * @ecc: [BOARDSPECIFIC] ECC control structure 427 * @ecc: [BOARDSPECIFIC] ECC control structure
428 * @buffers: buffer structure for read/write 428 * @buffers: buffer structure for read/write
429 * @hwcontrol: platform-specific hardware control structure 429 * @hwcontrol: platform-specific hardware control structure
430 * @ops: oob operation operands
431 * @erase_cmd: [INTERN] erase command write function, selectable due 430 * @erase_cmd: [INTERN] erase command write function, selectable due
432 * to AND support. 431 * to AND support.
433 * @scan_bbt: [REPLACEABLE] function to scan bad block table 432 * @scan_bbt: [REPLACEABLE] function to scan bad block table
@@ -535,8 +534,6 @@ struct nand_chip {
535 struct nand_buffers *buffers; 534 struct nand_buffers *buffers;
536 struct nand_hw_control hwcontrol; 535 struct nand_hw_control hwcontrol;
537 536
538 struct mtd_oob_ops ops;
539
540 uint8_t *bbt; 537 uint8_t *bbt;
541 struct nand_bbt_descr *bbt_td; 538 struct nand_bbt_descr *bbt_td;
542 struct nand_bbt_descr *bbt_md; 539 struct nand_bbt_descr *bbt_md;