mtd: nand: fixup 1/0 vs. true/false
Subsystems (2)
PATCH 1/1 mtd: nand: fixup 1/0 vs. true/false
The 'oob_required' argument is an int, according to the boolean style used in nand_base.c, so we should use 1 and 0 instead of true and false.
Thanks Mike for spotting this.
Signed-off-by Brian Norris <[email protected]>
Cc Mike Dunn <[email protected]>
Cc Shmulik Ladkani <[email protected]>
--- drivers/mtd/nand/bcm_umi_nand.c | 2 +- drivers/mtd/nand/docg4.c | 4 ++-- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/mtd/nand/bcm_umi_nand.c +1 -1
@@ -341,7 +341,7 @@ static int bcm_umi_nand_verify_buf(struct mtd_info *mtd, const u_char * buf,* for MLC parts which may have permanently stuck bits. */ struct nand_chip *chip = mtd->priv; -int ret = chip->ecc.read_page (mtd, chip, readbackbuf, false,0 ); +int ret = chip->ecc.read_page (mtd, chip, readbackbuf,0 ,0 );if (ret <0 )return -EFAULT ;else {
drivers/mtd/nand/docg4.c +2 -2
@@ -1003,7 +1003,7 @@ static int __init read_factory_bbt(struct mtd_info *mtd)return -ENOMEM ;read_page_prologue (mtd, g4_addr); - status =docg4_read_page (mtd, nand, buf, false,DOCG4_FACTORY_BBT_PAGE ); + status =docg4_read_page (mtd, nand, buf,0 ,DOCG4_FACTORY_BBT_PAGE );if (status) goto exit;
@@ -1080,7 +1080,7 @@ static int docg4_block_markbad(struct mtd_info *mtd, loff_t ofs)/* write first page of block */ write_page_prologue (mtd, g4_addr); -docg4_write_page (mtd, nand, buf, true); +docg4_write_page (mtd, nand, buf,1 ); ret =pageprog (mtd);if (!ret) mtd->ecc_stats.badblocks++;
drivers/mtd/nand/gpmi-nand/gpmi-nand.c +1 -1
@@ -1311,7 +1311,7 @@ static int mx23_write_transcription_stamp(struct gpmi_nand_data *this)/* Write the first page of the current stride. */ dev_dbg (dev,"Writing an NCB fingerprint in page 0x%x\n" , page); chip->cmdfunc (mtd,NAND_CMD_SEQIN ,0x00 , page); - chip->ecc.write_page_raw (mtd, chip, buffer, false); + chip->ecc.write_page_raw (mtd, chip, buffer,0 ); chip->cmdfunc (mtd,NAND_CMD_PAGEPROG ,-1 ,-1 );/* Wait for the write to finish. */
Signature · 1 line
1.7.5.4.2.g519b1
Artem Bityutskiy
AppliedQuoted 4 lines · Brian Norris
The '
oob_required' argument is an int, according to the boolean style used innand_base.c, so we should use 1 and 0 instead of true and false.Thanks Mike for spotting this.
Pushed to l2-mtd.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy