aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-05-29 02:25:06 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-06-26 08:35:03 +0200
commit33d226f504ed72cba3a2b42bbe2a993b3d6d9548 (patch)
tree32d80035b53a3c4371cff91d594aea74869aeedf /include/linux/mtd/nand.h
parentdt-bindings: mtd: nand: Document the generic rb-gpios property (diff)
downloadlinux-dev-33d226f504ed72cba3a2b42bbe2a993b3d6d9548.tar.xz
linux-dev-33d226f504ed72cba3a2b42bbe2a993b3d6d9548.zip
mtd: nand: Move nand_device forward declaration to the top
This structure might be used earlier in this file, let's move the forward declaration at the top. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://lore.kernel.org/linux-mtd/20200529002517.3546-10-miquel.raynal@bootlin.com
Diffstat (limited to '')
-rw-r--r--include/linux/mtd/nand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 0c7483843a32..a1f38c778d0e 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -12,6 +12,8 @@
#include <linux/mtd/mtd.h>
+struct nand_device;
+
/**
* struct nand_memory_organization - Memory organization structure
* @bits_per_cell: number of bits per NAND cell
@@ -133,8 +135,6 @@ struct nand_bbt {
unsigned long *cache;
};
-struct nand_device;
-
/**
* struct nand_ops - NAND operations
* @erase: erase a specific block. No need to check if the block is bad before