mtd: omap2: use nand_base defaults for polled I/O
Subsystems (2)
PATCH 1/1 mtd: omap2: use nand_base defaults for polled I/O
The omap_{read,write}_buf{8,16}() functions are identical to the default nand_base versions. Just let nand_base assign them in the NAND_OMAP_POLLED case.
---
Compile tested only
drivers/mtd/nand/omap2.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/mtd/nand/omap2.c +1 -7
@@ -1730,13 +1730,7 @@ static int omap_nand_probe(struct platform_device *pdev)break ;case NAND_OMAP_POLLED : -if (nand_chip->options &NAND_BUSWIDTH_16 ) { - nand_chip->read_buf = omap_read_buf16; - nand_chip->write_buf = omap_write_buf16; - }else { - nand_chip->read_buf = omap_read_buf8; - nand_chip->write_buf = omap_write_buf8; - } +/* Use nand_base defaults for {read,write}_buf */ break ;case NAND_OMAP_PREFETCH_DMA :
Signature · 1 line
1.8.3.2
Quoted 33 lines
From: Brian Norris [mailto:[email protected]]
The omap_{read,write}_buf{8,16}() functions are identical to the default
nand_baseversions. Just letnand_baseassign them in theNAND_OMAP_POLLEDcase.Signed-off-by Brian Norris <[email protected]>---
Compile tested only
drivers/mtd/nand/omap2.c| 8 +-------1 file changed, 1 insertion(+), 7 deletions(-)drivers/mtd/nand/omap2.c +1
-8@@ -1730,13 +1730,7 @@ static int omap_nand_probe(struct platform_device *pdev)break ;case NAND_OMAP_POLLED : -if (nand_chip->options &NAND_BUSWIDTH_16 ) { - nand_chip->read_buf = omap_read_buf16; - nand_chip->write_buf = omap_write_buf16; - }else { - nand_chip->read_buf = omap_read_buf8; - nand_chip->write_buf = omap_write_buf8; - } +/* Use nand_base defaults for {read,write}_buf */ break ;case NAND_OMAP_PREFETCH_DMA : --
Quoted 1 line
1.8.3.2
with regards, pekon
Brian Norris
AppliedQuoted 11 lines · Pekon Gupta
Quoted 9 lines
From: Brian Norris [mailto:[email protected]]
The omap_{read,write}_buf{8,16}() functions are identical to the default
nand_baseversions. Just letnand_baseassign them in theNAND_OMAP_POLLEDcase.Signed-off-by Brian Norris <[email protected]>---
Compile tested onlyTested-by Pekon Gupta <[email protected]>
Thanks.
Pushed to l2-mtd.git.
Brian