aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/sharpsl.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-09-06 18:38:41 -0400
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-10-03 05:12:25 -0400
commit3cece3abebda068e55e19302a6f0fa60cf553737 (patch)
tree52f24ce287b89931674173984203b5c94edee023 /drivers/mtd/nand/raw/sharpsl.c
parent45240367939b071b9957b970379cf64f9a2934ce (diff)
mtd: rawnand: Deprecate ->chip_delay
The wait timeouts and delays are directly extracted from the NAND timings and ->chip_delay is only used in legacy path, so let's move it to the nand_legacy struct to make it clear. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/sharpsl.c')
-rw-r--r--drivers/mtd/nand/raw/sharpsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/sharpsl.c b/drivers/mtd/nand/raw/sharpsl.c
index 3d14408cbbce..c82f26c8b58c 100644
--- a/drivers/mtd/nand/raw/sharpsl.c
+++ b/drivers/mtd/nand/raw/sharpsl.c
@@ -159,7 +159,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
159 this->legacy.cmd_ctrl = sharpsl_nand_hwcontrol; 159 this->legacy.cmd_ctrl = sharpsl_nand_hwcontrol;
160 this->legacy.dev_ready = sharpsl_nand_dev_ready; 160 this->legacy.dev_ready = sharpsl_nand_dev_ready;
161 /* 15 us command delay time */ 161 /* 15 us command delay time */
162 this->chip_delay = 15; 162 this->legacy.chip_delay = 15;
163 /* set eccmode using hardware ECC */ 163 /* set eccmode using hardware ECC */
164 this->ecc.mode = NAND_ECC_HW; 164 this->ecc.mode = NAND_ECC_HW;
165 this->ecc.size = 256; 165 this->ecc.size = 256;