diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-27 14:34:53 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-02 15:57:27 +0100 |
commit | b10cb627526a19df97b56ac42381ad1104297d16 (patch) | |
tree | c3074f8c2ab06c374b02ad3e798f734c053db51d /hw/watchdog/wdt_diag288.c | |
parent | 739b38630c45585cd9d372d44537f69c0b2b4346 (diff) |
watchdog: add information from -watchdog help to -device help
List all watchdog devices in a separate category, and populate
their descriptions.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/watchdog/wdt_diag288.c')
-rw-r--r-- | hw/watchdog/wdt_diag288.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/watchdog/wdt_diag288.c b/hw/watchdog/wdt_diag288.c index e135a4de8b..9e8882a11c 100644 --- a/hw/watchdog/wdt_diag288.c +++ b/hw/watchdog/wdt_diag288.c @@ -122,9 +122,10 @@ static void wdt_diag288_class_init(ObjectClass *klass, void *data) dc->unrealize = wdt_diag288_unrealize; dc->reset = wdt_diag288_reset; dc->hotpluggable = false; - set_bit(DEVICE_CATEGORY_MISC, dc->categories); + set_bit(DEVICE_CATEGORY_WATCHDOG, dc->categories); dc->vmsd = &vmstate_diag288; diag288->handle_timer = wdt_diag288_handle_timer; + dc->desc = "diag288 device for s390x platform"; } static const TypeInfo wdt_diag288_info = { |