watchdog: ziirave_wdt: Rename "trigger" reset reason "hw watchdog"
authorMartyn Welch <martyn.welch@collabora.co.uk>
Fri, 26 Feb 2016 16:05:12 +0000 (16:05 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 1 Mar 2016 14:30:16 +0000 (15:30 +0100)
The Zodiac watchdog is implemented on a microcontoller. The reset reason
currently labelled "trigger" is not to detect when the watchdog has
triggered (as had been initially understood and suggested by the naming),
but to inform the reader that the watchdog, which in fact has it's own
hardware watchdog, has been reset because the hardware watchdog has
triggered. Renaming to "hw watchdog".

Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/ziirave_wdt.c

index 0c7cb7302cf06586917a8d237b052782c756a17d..cbe373de36598572bc47557a008386e7838086c8 100644 (file)
@@ -36,7 +36,7 @@
 #define ZIIRAVE_STATE_OFF      0x1
 #define ZIIRAVE_STATE_ON       0x2
 
-static char *ziirave_reasons[] = {"power cycle", "triggered", NULL, NULL,
+static char *ziirave_reasons[] = {"power cycle", "hw watchdog", NULL, NULL,
                                  "host request", NULL, "illegal configuration",
                                  "illegal instruction", "illegal trap",
                                  "unknown"};