projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8692cf0
)
watchdog: octeon: use fixed length string for register names
author
Aaro Koskinen
<aaro.koskinen@iki.fi>
Sat, 28 Mar 2015 18:05:40 +0000
(20:05 +0200)
committer
Wim Van Sebroeck
<wim@iguana.be>
Wed, 22 Apr 2015 13:28:40 +0000
(15:28 +0200)
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>
drivers/watchdog/octeon-wdt-main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/watchdog/octeon-wdt-main.c
b/drivers/watchdog/octeon-wdt-main.c
index 728840cacc518c4d9a2aafe2ca102fc59d9f255d..14521c8b3d5a81916cc04d9b6e7d242837c2e678 100644
(file)
--- 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)
}
}
-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",