]> 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)
commitc025eb1861f3953d88d4b0db4e94917de72f4344
treee9ff3f1081bcfdf33f166857c9ba8c2387bb99a9
parent3326118006548a143bbb86b0a5d5357e3bb269c2
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