summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-09-06 14:05:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-25 15:33:07 +0200
commit4c9539a319254b8d863ed7d0f8764953f144da60 (patch)
tree3935488e5022ed9c6ca470f73b1d609c602c6168 /Documentation
parente1906ca16db5d2b28dffd5785f058d22dbea1ab4 (diff)
downloadlinux-stable-4c9539a319254b8d863ed7d0f8764953f144da60.tar.gz
linux-stable-4c9539a319254b8d863ed7d0f8764953f144da60.tar.bz2
linux-stable-4c9539a319254b8d863ed7d0f8764953f144da60.zip
mtd: rawnand: Pass a nand_chip object to nand_scan()
[ Upstream commit 00ad378f304a091ab2e2df5f944892a6ed558610 ] Let's make the raw NAND API consistent by patching all helpers to take a nand_chip object instead of an mtd_info one. We start with nand_scan(). Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/driver-api/mtdnand.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/driver-api/mtdnand.rst b/Documentation/driver-api/mtdnand.rst
index c55a6034c397..1ab6f35b6410 100644
--- a/Documentation/driver-api/mtdnand.rst
+++ b/Documentation/driver-api/mtdnand.rst
@@ -246,7 +246,7 @@ necessary information about the device.
this->eccmode = NAND_ECC_SOFT;
/* Scan to find existence of the device */
- if (nand_scan (board_mtd, 1)) {
+ if (nand_scan (this, 1)) {
err = -ENXIO;
goto out_ior;
}