]> git.proxmox.com Git - mirror_qemu.git/commitdiff
max111x: put it into the 'misc' category
authorGan Qixin <ganqixin@huawei.com>
Thu, 12 Nov 2020 12:58:24 +0000 (20:58 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Nov 2020 09:17:02 +0000 (10:17 +0100)
The category of the max111x device is not set, put it into the 'misc'
category.

Signed-off-by: Gan Qixin <ganqixin@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20201112125824.763182-5-ganqixin@huawei.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/misc/max111x.c

index 7e6723f3435fccbb05aa24f1af2ff23203bcaea9..eae0f9b598dc47ff8b331c0e28af1f920d29435e 100644 (file)
@@ -185,6 +185,7 @@ static void max111x_class_init(ObjectClass *klass, void *data)
     k->transfer = max111x_transfer;
     dc->reset = max111x_reset;
     dc->vmsd = &vmstate_max111x;
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
 
 static const TypeInfo max111x_info = {