projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba9f316
)
mtd: nand: Move nand_device forward declaration to the top
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 29 May 2020 00:25:06 +0000
(
02:25
+0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:03 +0000
(08:35 +0200)
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
include/linux/mtd/nand.h
patch
|
blob
|
history
diff --git
a/include/linux/mtd/nand.h
b/include/linux/mtd/nand.h
index 0c7483843a32ec397a8b4dfa6fd0058eb7f5cfe0..a1f38c778d0ee51ef9cce86cf0a88a4ed2295bcc 100644
(file)
--- 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