aboutsummaryrefslogtreecommitdiff
path: root/hw/watchdog/wdt_diag288.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2017-09-07 10:05:25 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-10-02 08:41:03 +0200
commit4c7f4426c454f5787154b86406188d90d4c1b267 (patch)
treede21323081956f154217a39d34dc667174b823c0 /hw/watchdog/wdt_diag288.c
parent14d53b4f4a88e82b4e62907ec64feafac1986531 (diff)
watchdog.h: Drop local redefinition of actions enum
We already have enum that enumerates all the actions that a watchdog can take when hitting its timeout: WatchdogAction. Use that instead of inventing our own. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Message-Id: <ce2790634e6a1b3b6cf90462399d17bad83f0290.1504771369.git.mprivozn@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/watchdog/wdt_diag288.c')
-rw-r--r--hw/watchdog/wdt_diag288.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/watchdog/wdt_diag288.c b/hw/watchdog/wdt_diag288.c
index 47f289216a..1475743527 100644
--- a/hw/watchdog/wdt_diag288.c
+++ b/hw/watchdog/wdt_diag288.c
@@ -57,9 +57,9 @@ static void diag288_timer_expired(void *dev)
* the BQL; reset before triggering the action to avoid races with
* diag288 instructions. */
switch (get_watchdog_action()) {
- case WDT_DEBUG:
- case WDT_NONE:
- case WDT_PAUSE:
+ case WATCHDOG_ACTION_DEBUG:
+ case WATCHDOG_ACTION_NONE:
+ case WATCHDOG_ACTION_PAUSE:
break;
default:
wdt_diag288_reset(dev);