Skip to content

Commit

Permalink
watchdog: octeon: use fixed length string for register names
Browse files Browse the repository at this point in the history
Use fixed length string for register names. This saves 416 bytes
in text size.

Signed-off-by: Aaro Koskinen <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
aakoskin authored and Wim Van Sebroeck committed Apr 22, 2015
1 parent 8692cf0 commit 3a30c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/octeon-wdt-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static void octeon_wdt_write_hex(u64 value, int digits)
}
}

static const char *reg_name[] = {
static const char reg_name[][3] = {
"$0", "at", "v0", "v1", "a0", "a1", "a2", "a3",
"a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3",
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
Expand Down

0 comments on commit 3a30c07

Please sign in to comment.