mtd: nand: export default read/write oob functions
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 26 Aug 2015 14:08:12 +0000 (16:08 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:38 +0000 (22:05 +0200)
commit9d02fc2a5129449581c3108c260e96377cf35f7e
treee9ff3f1081bcfdf33f166857c9ba8c2387bb99a9
parent5abcd95d8c69008c72d54d7763e0ee2b5df84ac4
mtd: nand: export default read/write oob functions

Export the default read/write oob functions (for the standard and syndrome
scheme), so that drivers can use them for their raw implementation and
implement their own functions for the normal oob operation.

This is required if your ECC engine is capable of fixing some of the OOB
data. In this case you have to overload the ->read_oob() and ->write_oob(),
but if you don't specify the ->read/write_oob_raw() functions they are
assigned to the ->read/write_oob() implementation, which is not what you
want.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h