aboutsummaryrefslogtreecommitdiff
path: root/libflash
diff options
context:
space:
mode:
Diffstat (limited to 'libflash')
-rw-r--r--libflash/libflash.c4
-rw-r--r--libflash/libflash.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libflash/libflash.c b/libflash/libflash.c
index bf2e58e..ad25b61 100644
--- a/libflash/libflash.c
+++ b/libflash/libflash.c
@@ -23,10 +23,6 @@
#include "ecc.h"
#include "blocklevel.h"
-#ifndef MIN
-#define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
static const struct flash_info flash_info[] = {
{ 0xc22018, 0x01000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL12835F"},
{ 0xc22019, 0x02000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL25635F"},
diff --git a/libflash/libflash.h b/libflash/libflash.h
index ff3a982..01b4d60 100644
--- a/libflash/libflash.h
+++ b/libflash/libflash.h
@@ -28,6 +28,10 @@
*/
#include <libflash/errors.h>
+#ifndef MIN
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#endif
+
/* Flash chip, opaque */
struct flash_chip;
struct spi_flash_ctrl;