summaryrefslogtreecommitdiffstats
path: root/flashrom.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 /flashrom.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 'flashrom.c')
-rw-r--r--flashrom.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/flashrom.c b/flashrom.c
index 7b1b9ba73..0a1d8124d 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -505,7 +505,7 @@ int programmer_init(char *param)
.fwh = 0xffffffff,
.spi = 0xffffffff
};
- buses_supported = CHIP_BUSTYPE_NONE;
+ buses_supported = BUS_NONE;
/* Default to top aligned flash at 4 GB. */
flashbase = 0;
/* Registering shutdown functions is now allowed. */
@@ -1080,7 +1080,7 @@ int generate_testpattern(uint8_t *buf, uint32_t size, int variant)
int check_max_decode(enum chipbustype buses, uint32_t size)
{
int limitexceeded = 0;
- if ((buses & CHIP_BUSTYPE_PARALLEL) &&
+ if ((buses & BUS_PARALLEL) &&
(max_rom_decode.parallel < size)) {
limitexceeded++;
msg_pdbg("Chip size %u kB is bigger than supported "
@@ -1089,7 +1089,7 @@ int check_max_decode(enum chipbustype buses, uint32_t size)
"probe/read/erase/write may fail. ", size / 1024,
max_rom_decode.parallel / 1024, "Parallel");
}
- if ((buses & CHIP_BUSTYPE_LPC) && (max_rom_decode.lpc < size)) {
+ if ((buses & BUS_LPC) && (max_rom_decode.lpc < size)) {
limitexceeded++;
msg_pdbg("Chip size %u kB is bigger than supported "
"size %u kB of chipset/board/programmer "
@@ -1097,7 +1097,7 @@ int check_max_decode(enum chipbustype buses, uint32_t size)
"probe/read/erase/write may fail. ", size / 1024,
max_rom_decode.lpc / 1024, "LPC");
}
- if ((buses & CHIP_BUSTYPE_FWH) && (max_rom_decode.fwh < size)) {
+ if ((buses & BUS_FWH) && (max_rom_decode.fwh < size)) {
limitexceeded++;
msg_pdbg("Chip size %u kB is bigger than supported "
"size %u kB of chipset/board/programmer "
@@ -1105,7 +1105,7 @@ int check_max_decode(enum chipbustype buses, uint32_t size)
"probe/read/erase/write may fail. ", size / 1024,
max_rom_decode.fwh / 1024, "FWH");
}
- if ((buses & CHIP_BUSTYPE_SPI) && (max_rom_decode.spi < size)) {
+ if ((buses & BUS_SPI) && (max_rom_decode.spi < size)) {
limitexceeded++;
msg_pdbg("Chip size %u kB is bigger than supported "
"size %u kB of chipset/board/programmer "