]> git.dujemihanovic.xyz Git - u-boot.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)
commit7440bd7885da984dc20e2e8c8a0b167911e9dce1
treeb30fa7951dd8e4ffb623779541769c7cb7cb1330
parentba1c98bae2649e990c6af04545e422042cb58b27
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