diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-06 15:05:14 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-10-03 12:12:25 +0300 |
commit | 00ad378f304a091ab2e2df5f944892a6ed558610 (patch) | |
tree | 38759df7616e9c5763878f7496b2bfbf142a151c /Documentation/driver-api/mtdnand.rst | |
parent | 47bd59e538d4e7b3ad9c18bef5c1052657bdff59 (diff) | |
download | linux-00ad378f304a091ab2e2df5f944892a6ed558610.tar.xz |
mtd: rawnand: Pass a nand_chip object to nand_scan()
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>
Diffstat (limited to 'Documentation/driver-api/mtdnand.rst')
-rw-r--r-- | Documentation/driver-api/mtdnand.rst | 2 |
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; } |