diff mbox

[1/3] flash: Increase the maximum number of flash devices

Message ID 1467618402-21500-1-git-send-email-mikey@neuling.org
State Accepted
Headers show

Commit Message

Michael Neuling July 4, 2016, 7:46 a.m. UTC
Increase the max number of flash devices from 1 to 8.

With mambo bogusdisk, we can have many flash devices.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 core/flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stewart Smith July 5, 2016, 9:20 a.m. UTC | #1
Michael Neuling <mikey@neuling.org> writes:
> Increase the max number of flash devices from 1 to 8.
>
> With mambo bogusdisk, we can have many flash devices.
>
> Signed-off-by: Michael Neuling <mikey@neuling.org>

Series merged to master as of 252f1ad.
diff mbox

Patch

diff --git a/core/flash.c b/core/flash.c
index da97309..5036707 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -33,7 +33,7 @@  struct flash {
 	uint32_t		block_size;
 };
 
-#define MAX_FLASH 1
+#define MAX_FLASH 8
 static struct flash flashes[MAX_FLASH];
 static struct flash *system_flash;