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
commit91f4afa1108a35783e9d3d546fe8ea41dc87708f (patch)
treea94991ce77532b8767d5d3c6ac0e9ab58f4b9a2c /ichspi.c
parent1a227954f2c7d0a25d42bcea2ea0b901ceb0f464 (diff)
downloadast2050-flashrom-91f4afa1108a35783e9d3d546fe8ea41dc87708f.zip
ast2050-flashrom-91f4afa1108a35783e9d3d546fe8ea41dc87708f.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