summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-07-27 07:13:06 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-07-27 07:13:06 +0000
commit1a227954f2c7d0a25d42bcea2ea0b901ceb0f464 (patch)
treeff9f4d8bbe04e1e80755b43b36b990b74d6845b3 /print.c
parent4deb8c6a7ad0d4290cb7272a11da94139019c6ae (diff)
downloadflashrom-1a227954f2c7d0a25d42bcea2ea0b901ceb0f464.tar.gz
flashrom-1a227954f2c7d0a25d42bcea2ea0b901ceb0f464.tar.bz2
flashrom-1a227954f2c7d0a25d42bcea2ea0b901ceb0f464.zip
Rename CHIP_BUSTYPE_FOO to BUS_FOO
It's shorter to type, and we have less problems with the 80 column limit. Corresponding to flashrom svn r1396. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'print.c')
-rw-r--r--print.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/print.c b/print.c
index 16b79735f..b72aea8d8 100644
--- a/print.c
+++ b/print.c
@@ -33,24 +33,24 @@
char *flashbuses_to_text(enum chipbustype bustype)
{
char *ret = calloc(1, 1);
- if (bustype == CHIP_BUSTYPE_UNKNOWN) {
+ if (bustype == BUS_UNKNOWN) {
ret = strcat_realloc(ret, "Unknown, ");
/*
* FIXME: Once all chipsets and flash chips have been updated, NONSPI
* will cease to exist and should be eliminated here as well.
*/
- } else if (bustype == CHIP_BUSTYPE_NONSPI) {
+ } else if (bustype == BUS_NONSPI) {
ret = strcat_realloc(ret, "Non-SPI, ");
} else {
- if (bustype & CHIP_BUSTYPE_PARALLEL)
+ if (bustype & BUS_PARALLEL)
ret = strcat_realloc(ret, "Parallel, ");
- if (bustype & CHIP_BUSTYPE_LPC)
+ if (bustype & BUS_LPC)
ret = strcat_realloc(ret, "LPC, ");
- if (bustype & CHIP_BUSTYPE_FWH)
+ if (bustype & BUS_FWH)
ret = strcat_realloc(ret, "FWH, ");
- if (bustype & CHIP_BUSTYPE_SPI)
+ if (bustype & BUS_SPI)
ret = strcat_realloc(ret, "SPI, ");
- if (bustype == CHIP_BUSTYPE_NONE)
+ if (bustype == BUS_NONE)
ret = strcat_realloc(ret, "None, ");
}
/* Kill last comma. */