diff mbox series

[RESEND,v5,17/21] mtd: nand: Move nand_device forward declaration to the top

Message ID 20200526195633.11543-18-miquel.raynal@bootlin.com
State Accepted
Commit 33d226f504ed72cba3a2b42bbe2a993b3d6d9548
Headers show
Series [RESEND,v5,01/21] mtd: Fix typo in mtd_ooblayout_set_databytes() description | expand

Commit Message

Miquel Raynal May 26, 2020, 7:56 p.m. UTC
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>
---
 include/linux/mtd/nand.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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