[v2,01/36] mtd: nand: Move nand_device forward declaration to the top
diff mbox series

Message ID 20190304222841.13899-2-miquel.raynal@bootlin.com
State New
Headers show
Series
  • Introduce the generic ECC engine abstraction
Related show

Commit Message

Miquel Raynal March 4, 2019, 10:28 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>
---
 include/linux/mtd/nand.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Boris Brezillon March 31, 2019, 11:12 a.m. UTC | #1
On Mon,  4 Mar 2019 23:28:06 +0100
Miquel Raynal <miquel.raynal@bootlin.com> wrote:

> 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 --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
> index cebc38b6d6f5..30f0fb02abe2 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

Patch
diff mbox series

diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index cebc38b6d6f5..30f0fb02abe2 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