diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2015-03-28 14:05:40 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2015-04-22 09:28:40 -0400 |
commit | 3a30c07e712df895981deac0782655997942bc75 (patch) | |
tree | 823cbac33bc744defcd0646a02c68d4237931ec6 /drivers/watchdog | |
parent | 8692cf0ad31b3654c798c23de01e4c23c4536dea (diff) |
watchdog: octeon: use fixed length string for register names
Use fixed length string for register names. This saves 416 bytes
in text size.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/octeon-wdt-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/octeon-wdt-main.c b/drivers/watchdog/octeon-wdt-main.c index 728840cacc51..14521c8b3d5a 100644 --- a/drivers/watchdog/octeon-wdt-main.c +++ b/drivers/watchdog/octeon-wdt-main.c | |||
@@ -304,7 +304,7 @@ static void octeon_wdt_write_hex(u64 value, int digits) | |||
304 | } | 304 | } |
305 | } | 305 | } |
306 | 306 | ||
307 | static const char *reg_name[] = { | 307 | static const char reg_name[][3] = { |
308 | "$0", "at", "v0", "v1", "a0", "a1", "a2", "a3", | 308 | "$0", "at", "v0", "v1", "a0", "a1", "a2", "a3", |
309 | "a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3", | 309 | "a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3", |
310 | "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", | 310 | "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", |