projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1c98b
)
spl: nand: sunxi: declare the ecc_bytes array globally
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 28 Feb 2018 19:51:54 +0000
(20:51 +0100)
committer
Maxime Ripard
<maxime.ripard@bootlin.com>
Tue, 3 Apr 2018 10:11:38 +0000
(12:11 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand/sunxi_nand_spl.c
index 9ebdcee3513e2753449d502720b8f609febd24a4..af1e964effe4244e5d484c9279284e943a64f565 100644
(file)
--- a/
drivers/mtd/nand/sunxi_nand_spl.c
+++ b/
drivers/mtd/nand/sunxi_nand_spl.c
@@
-263,6
+263,8
@@
static int nand_change_column(u16 column)
return 0;
}
+static const int ecc_bytes[] = {32, 46, 54, 60, 74, 88, 102, 110, 116};
+
static int nand_read_page(const struct nfc_config *conf, u32 offs,
void *dest, int len)
{
@@
-350,7
+352,6
@@
static int nand_read_page(const struct nfc_config *conf, u32 offs,
static int nand_max_ecc_strength(struct nfc_config *conf)
{
- static const int ecc_bytes[] = { 32, 46, 54, 60, 74, 88, 102, 110, 116 };
int max_oobsize, max_ecc_bytes;
int nsectors = conf->page_size / conf->ecc_size;
int i;