diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2016-03-07 10:46:54 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-03-07 16:23:09 -0800 |
commit | a8c65d504e0b2256f7672506ae6ea68d88ef020a (patch) | |
tree | fb123fc52e4b2d09a3f7f77680276d828696abc2 /drivers/mtd/spi-nor/spi-nor.c | |
parent | f2de0fa64306651bc5aa04f6bb56c057658486d5 (diff) | |
download | op-kernel-dev-a8c65d504e0b2256f7672506ae6ea68d88ef020a.zip op-kernel-dev-a8c65d504e0b2256f7672506ae6ea68d88ef020a.tar.gz |
mtd: nand: simplify nand_bch_init() usage
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: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/spi-nor/spi-nor.c')
0 files changed, 0 insertions, 0 deletions