]> git.baikalelectronics.ru Git - uboot.git/commit
spl: nand: sunxi: declare the ecc_bytes array globally
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 28 Feb 2018 19:51:54 +0000 (20:51 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 3 Apr 2018 10:11:38 +0000 (12:11 +0200)
commit70d2bc218f1b0b3454a7dd598611aec4f31fe059
treeb30fa7951dd8e4ffb623779541769c7cb7cb1330
parentba38fa93e13d3220d85877f4b551c5711333c506
spl: nand: sunxi: declare the ecc_bytes array globally

Move the ecc_bytes array out of nand_max_ecc_strength() for future use
by nand_read_page().

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/mtd/nand/sunxi_nand_spl.c