summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-31 15:27:27 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-31 15:27:27 +0000
commit71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7 (patch)
treeecd2ba9f67c51b833d22051628b79ccb1dcde0a2 /layout.c
parenta0020df6309e4536fcb97bd93bc46e2068f0ffe8 (diff)
downloadast2050-flashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.zip
ast2050-flashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.tar.gz
So far, we have up to 4 different names for the same thing (ignoring capitalization)
CONFIG_FT2232SPI (makefile config option) FT2232_SPI_SUPPORT (#define) ft2232spi (programmer name) ft2232_spi.c (programmer file) Use CONFIG_* with underscores for makefile config options and #defines and kill the useless _SUPPORT idiom. Use lowercase names with underscores for programmer names and programmer files. With this, you can run "grep -i ft2232_spi" and find everything related to the ft2232_spi driver. Same applies to all other programmers. Corresponding to flashrom svn r1023. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout.c b/layout.c
index 363e4f3..d95cf12 100644
--- a/layout.c
+++ b/layout.c
@@ -24,7 +24,7 @@
#include <ctype.h>
#include "flash.h"
-#if INTERNAL_SUPPORT == 1
+#if CONFIG_INTERNAL == 1
char *mainboard_vendor = NULL;
char *mainboard_part = NULL;
#endif
@@ -41,7 +41,7 @@ typedef struct {
romlayout_t rom_entries[MAX_ROMLAYOUT];
-#if INTERNAL_SUPPORT == 1 /* FIXME: Move the whole block to cbtable.c? */
+#if CONFIG_INTERNAL == 1 /* FIXME: Move the whole block to cbtable.c? */
static char *def_name = "DEFAULT";
int show_id(uint8_t *bios, int size, int force)
OpenPOWER on IntegriCloud