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_aspeed.c | |
| parent | 739b38630c45585cd9d372d44537f69c0b2b4346 (diff) | |
| download | focaccia-qemu-b10cb627526a19df97b56ac42381ad1104297d16.tar.gz focaccia-qemu-b10cb627526a19df97b56ac42381ad1104297d16.zip | |
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_aspeed.c')
| -rw-r--r-- | hw/watchdog/wdt_aspeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/watchdog/wdt_aspeed.c b/hw/watchdog/wdt_aspeed.c index 146ffcd713..6aa6f90b66 100644 --- a/hw/watchdog/wdt_aspeed.c +++ b/hw/watchdog/wdt_aspeed.c @@ -293,9 +293,10 @@ static void aspeed_wdt_class_init(ObjectClass *klass, void *data) dc->desc = "ASPEED Watchdog Controller"; dc->realize = aspeed_wdt_realize; dc->reset = aspeed_wdt_reset; - set_bit(DEVICE_CATEGORY_MISC, dc->categories); + set_bit(DEVICE_CATEGORY_WATCHDOG, dc->categories); dc->vmsd = &vmstate_aspeed_wdt; device_class_set_props(dc, aspeed_wdt_properties); + dc->desc = "Aspeed watchdog device"; } static const TypeInfo aspeed_wdt_info = { |