]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd13322bf0f4fc82ecb32cc4881a1bd37bee6974
treee9ff3f1081bcfdf33f166857c9ba8c2387bb99a9
parent4fd1dd45d678035e773fa614f01317fd93348b4f
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