summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-07-28 08:13:25 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2011-07-28 08:13:25 +0000
commitb31f0d1676f4ce69052b0bbfd608ad2d14058f23 (patch)
treea94991ce77532b8767d5d3c6ac0e9ab58f4b9a2c /ichspi.c
parent15b617fad8871538ae54358e05e5f94b8c8400cf (diff)
downloadflashrom-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ichspi.c b/ichspi.c
index 833c0c3..557d5e6 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -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;
}
OpenPOWER on IntegriCloud