diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-07-28 08:13:25 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-07-28 08:13:25 +0000 |
commit | b31f0d1676f4ce69052b0bbfd608ad2d14058f23 (patch) | |
tree | a94991ce77532b8767d5d3c6ac0e9ab58f4b9a2c /ichspi.c | |
parent | 15b617fad8871538ae54358e05e5f94b8c8400cf (diff) | |
download | flashrom-b31f0d1676f4ce69052b0bbfd608ad2d14058f23.zip flashrom-b31f0d1676f4ce69052b0bbfd608ad2d14058f23.tar.gz |
Random whitespace and coding-style fixes
Also, indentation fixes, e.g. due to conversion to msg_*, use ARRAY_SIZE
where possible, wrap overly long line, etc.
Compile-tested. There should be no functional changes.
Corresponding to flashrom svn r1397.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'ichspi.c')
-rw-r--r-- | ichspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -362,7 +362,7 @@ static uint8_t lookup_spi_type(uint8_t opcode) { int a; - for (a = 0; a < sizeof(POSSIBLE_OPCODES)/sizeof(POSSIBLE_OPCODES[0]); a++) { + for (a = 0; a < ARRAY_SIZE(POSSIBLE_OPCODES); a++) { if (POSSIBLE_OPCODES[a].opcode == opcode) return POSSIBLE_OPCODES[a].spi_type; } |