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>
diff --git a/dummyflasher.c b/dummyflasher.c
index fca228c..4d0b42e 100644
--- a/dummyflasher.c
+++ b/dummyflasher.c
@@ -107,24 +107,24 @@
/* Convert the parameters to lowercase. */
tolower_string(bustext);
- buses_supported = CHIP_BUSTYPE_NONE;
+ buses_supported = BUS_NONE;
if (strstr(bustext, "parallel")) {
- buses_supported |= CHIP_BUSTYPE_PARALLEL;
+ buses_supported |= BUS_PARALLEL;
msg_pdbg("Enabling support for %s flash.\n", "parallel");
}
if (strstr(bustext, "lpc")) {
- buses_supported |= CHIP_BUSTYPE_LPC;
+ buses_supported |= BUS_LPC;
msg_pdbg("Enabling support for %s flash.\n", "LPC");
}
if (strstr(bustext, "fwh")) {
- buses_supported |= CHIP_BUSTYPE_FWH;
+ buses_supported |= BUS_FWH;
msg_pdbg("Enabling support for %s flash.\n", "FWH");
}
if (strstr(bustext, "spi")) {
register_spi_programmer(&spi_programmer_dummyflasher);
msg_pdbg("Enabling support for %s flash.\n", "SPI");
}
- if (buses_supported == CHIP_BUSTYPE_NONE)
+ if (buses_supported == BUS_NONE)
msg_pdbg("Support for all flash bus types disabled.\n");
free(bustext);