projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b56273
)
mtd: rawnand: Move struct gpio_desc declaration to the top
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 26 May 2021 09:32:39 +0000
(11:32 +0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 26 May 2021 14:26:30 +0000
(16:26 +0200)
The struct gpio_desc is declared in the middle of the rawnand.h header,
right before the first function using it (nand_gpio_waitrdy). Before
adding a new function and to make it clear: move the declaration to the
top of the file.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20210526093242.183847-2-miquel.raynal@bootlin.com
include/linux/mtd/rawnand.h
patch
|
blob
|
history
diff --git
a/include/linux/mtd/rawnand.h
b/include/linux/mtd/rawnand.h
index 89b9c52c7387f9b989447463d26242afb027d93a..d41d39360fff1a37dbd310d0609d52027224a51b 100644
(file)
--- a/
include/linux/mtd/rawnand.h
+++ b/
include/linux/mtd/rawnand.h
@@
-24,6
+24,7
@@
#include <linux/types.h>
struct nand_chip;
+struct gpio_desc;
/* The maximum number of NAND chips in an array */
#define NAND_MAX_CHIPS 8
@@
-1562,7
+1563,6
@@
void nand_cleanup(struct nand_chip *chip);
* instruction and have no physical pin to check it.
*/
int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms);
-struct gpio_desc;
int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod,
unsigned long timeout_ms);