summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2016-03-07 10:46:54 +0100
committerBrian Norris <computersforpeace@gmail.com>2016-03-07 16:23:09 -0800
commita8c65d504e0b2256f7672506ae6ea68d88ef020a (patch)
treefb123fc52e4b2d09a3f7f77680276d828696abc2 /kernel
parentf2de0fa64306651bc5aa04f6bb56c057658486d5 (diff)
downloadop-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 'kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud