summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2018-10-28 22:23:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-14 20:20:27 +0100
commit939a4e9dc0e6a014ad1d2c73b170cc18bf27fad9 (patch)
treeeda2462131aed175f9c1dbcbb6c387a9607e23e9 /crypto
parentbabffbb19350d0119f128390c80101dbedd4dbca (diff)
downloadbarebox-939a4e9dc0e6a014ad1d2c73b170cc18bf27fad9.tar.gz
barebox-939a4e9dc0e6a014ad1d2c73b170cc18bf27fad9.tar.xz
mtd: nand: simplify nand_bch_init() usage
Linux commit a8c65d504e0b modified for Barebox: nand_bch_init() requires several arguments which could directly be deduced from the mtd device. Get rid of those useless parameters. nand_bch_init() is also requiring the caller to provide a proper eccbytes value, while this value could be deduced from the ecc.size and ecc.strength value. Fallback to eccbytes calculation when it is set to 0. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions