diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-10-28 22:23:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-12-14 20:20:27 +0100 |
commit | 939a4e9dc0e6a014ad1d2c73b170cc18bf27fad9 (patch) | |
tree | eda2462131aed175f9c1dbcbb6c387a9607e23e9 /commands/ubiformat.c | |
parent | babffbb19350d0119f128390c80101dbedd4dbca (diff) | |
download | barebox-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 'commands/ubiformat.c')
0 files changed, 0 insertions, 0 deletions