summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flash.h8
-rw-r--r--flashrom.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/flash.h b/flash.h
index 4888428..59c6c47 100644
--- a/flash.h
+++ b/flash.h
@@ -512,15 +512,13 @@ typedef enum {
extern flashbus_t flashbus;
extern void *spibar;
-/* debug.c */
-extern int verbose;
-#define printf_debug(x...) { if (verbose) printf(x); }
-
/* physmap.c */
void *physmap(const char *descr, unsigned long phys_addr, size_t len);
void physunmap(void *virt_addr, size_t len);
/* flashrom.c */
+extern int verbose;
+#define printf_debug(x...) { if (verbose) printf(x); }
void map_flash_registers(struct flashchip *flash);
/* layout.c */
@@ -529,7 +527,7 @@ int read_romlayout(char *name);
int find_romentry(char *name);
int handle_romentries(uint8_t *buffer, uint8_t *content);
-/* lbtable.c */
+/* cbtable.c */
int coreboot_init(void);
extern char *lb_part, *lb_vendor;
diff --git a/flashrom.c b/flashrom.c
index a47bfa0..8e1c3e4 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -242,7 +242,9 @@ int erase_flash(struct flashchip *flash)
return 0;
}
+#ifndef MAX
#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
#define POS_PRINT(x) do { pos += strlen(x); printf(x); } while (0)
void print_supported_chips(void)
OpenPOWER on IntegriCloud