From: Miquel Raynal Date: Fri, 29 May 2020 00:25:06 +0000 (+0200) Subject: mtd: nand: Move nand_device forward declaration to the top X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=33d226f504ed72cba3a2b42bbe2a993b3d6d9548;p=linux.git 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 Reviewed-by: Boris Brezillon Link: https://lore.kernel.org/linux-mtd/20200529002517.3546-10-miquel.raynal@bootlin.com --- diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 0c7483843a32e..a1f38c778d0ee 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -12,6 +12,8 @@ #include +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