]> www.infradead.org Git - qemu-nvme.git/commitdiff
u2f-passthru: put it into the 'misc' category
authorGan Qixin <ganqixin@huawei.com>
Mon, 30 Nov 2020 08:36:27 +0000 (16:36 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 20 Feb 2021 11:36:19 +0000 (12:36 +0100)
The category of the u2f-passthru device is not set, put it into the 'misc'
category.

Signed-off-by: Gan Qixin <ganqixin@huawei.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20201130083630.2520597-10-ganqixin@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/usb/u2f-passthru.c

index ae00e93f3507b58122e5ed495a767de21b27b652..fc93429c9c017a0eb296292ea8e43a0f5ddf4bf7 100644 (file)
@@ -534,6 +534,7 @@ static void u2f_passthru_class_init(ObjectClass *klass, void *data)
     dc->desc = "QEMU U2F passthrough key";
     dc->vmsd = &u2f_passthru_vmstate;
     device_class_set_props(dc, u2f_passthru_properties);
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
 
 static const TypeInfo u2f_key_passthru_info = {