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 | 91f4afa1108a35783e9d3d546fe8ea41dc87708f (patch) | |
tree | a94991ce77532b8767d5d3c6ac0e9ab58f4b9a2c /ichspi.c | |
parent | 1a227954f2c7d0a25d42bcea2ea0b901ceb0f464 (diff) | |
download | flashrom-91f4afa1108a35783e9d3d546fe8ea41dc87708f.tar.gz flashrom-91f4afa1108a35783e9d3d546fe8ea41dc87708f.tar.bz2 flashrom-91f4afa1108a35783e9d3d546fe8ea41dc87708f.zip |
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; } |