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/sbsa_gwdt.c | |
parent | 739b38630c45585cd9d372d44537f69c0b2b4346 (diff) | |
download | qemu-b10cb627526a19df97b56ac42381ad1104297d16.zip qemu-b10cb627526a19df97b56ac42381ad1104297d16.tar.gz qemu-b10cb627526a19df97b56ac42381ad1104297d16.tar.bz2 |
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/sbsa_gwdt.c')
-rw-r--r-- | hw/watchdog/sbsa_gwdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c index d0998f8..e49cacd 100644 --- a/hw/watchdog/sbsa_gwdt.c +++ b/hw/watchdog/sbsa_gwdt.c @@ -273,8 +273,9 @@ static void wdt_sbsa_gwdt_class_init(ObjectClass *klass, void *data) dc->realize = wdt_sbsa_gwdt_realize; dc->reset = wdt_sbsa_gwdt_reset; dc->hotpluggable = false; - set_bit(DEVICE_CATEGORY_MISC, dc->categories); + set_bit(DEVICE_CATEGORY_WATCHDOG, dc->categories); dc->vmsd = &vmstate_sbsa_gwdt; + dc->desc = "SBSA-compliant generic watchdog device"; } static const TypeInfo wdt_sbsa_gwdt_info = { |