aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nandsim.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@cruncher.tec.linutronix.de>2006-05-23 17:28:48 -0400
committerThomas Gleixner <tglx@cruncher.tec.linutronix.de>2006-05-23 17:28:48 -0400
commitcad74f2c380411ae7bee997f3ba18834cfe313a2 (patch)
treeaec691447dc3ab76688fe9dbe3cc2ae04ad1cbee /drivers/mtd/nand/nandsim.c
parent7abd3ef9875eb2afcdcd4f450680298a2983a55e (diff)
[MTD] NAND remove write_byte/word function from nand_chip
The previous change of the command / hardware control allows to remove the write_byte/word functions completely, as their only user were nand_command and nand_command_lp. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nandsim.c')
-rw-r--r--drivers/mtd/nand/nandsim.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index ecf727b32dec..ebd64abc8be8 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -1327,17 +1327,6 @@ ns_nand_read_word(struct mtd_info *mtd)
1327} 1327}
1328 1328
1329static void 1329static void
1330ns_nand_write_word(struct mtd_info *mtd, uint16_t word)
1331{
1332 struct nand_chip *chip = (struct nand_chip *)mtd->priv;
1333
1334 NS_DBG("write_word\n");
1335
1336 chip->write_byte(mtd, word & 0xFF);
1337 chip->write_byte(mtd, word >> 8);
1338}
1339
1340static void
1341ns_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) 1330ns_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len)
1342{ 1331{
1343 struct nandsim *ns = (struct nandsim *)((struct nand_chip *)mtd->priv)->priv; 1332 struct nandsim *ns = (struct nandsim *)((struct nand_chip *)mtd->priv)->priv;
@@ -1467,11 +1456,9 @@ static int __init ns_init_module(void)
1467 chip->cmd_ctrl = ns_hwcontrol; 1456 chip->cmd_ctrl = ns_hwcontrol;
1468 chip->read_byte = ns_nand_read_byte; 1457 chip->read_byte = ns_nand_read_byte;
1469 chip->dev_ready = ns_device_ready; 1458 chip->dev_ready = ns_device_ready;
1470 chip->write_byte = ns_nand_write_byte;
1471 chip->write_buf = ns_nand_write_buf; 1459 chip->write_buf = ns_nand_write_buf;
1472 chip->read_buf = ns_nand_read_buf; 1460 chip->read_buf = ns_nand_read_buf;
1473 chip->verify_buf = ns_nand_verify_buf; 1461 chip->verify_buf = ns_nand_verify_buf;
1474 chip->write_word = ns_nand_write_word;
1475 chip->read_word = ns_nand_read_word; 1462 chip->read_word = ns_nand_read_word;
1476 chip->ecc.mode = NAND_ECC_SOFT; 1463 chip->ecc.mode = NAND_ECC_SOFT;
1477 chip->options |= NAND_SKIP_BBTSCAN; 1464 chip->options |= NAND_SKIP_BBTSCAN;