[Qemu-devel] [PATCH] hw/scsi/mptsas: Classify the device as "storage"

Thomas Huth posted 1 patch 6 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1534926564-26061-1-git-send-email-thuth@redhat.com
Test docker-clang@ubuntu failed
Test checkpatch passed
hw/scsi/mptsas.c | 1 +
1 file changed, 1 insertion(+)
[Qemu-devel] [PATCH] hw/scsi/mptsas: Classify the device as "storage"
Posted by Thomas Huth 6 years, 8 months ago
Each device should ideally have a category, so put the mptsas1068 device
into the "storage" category.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 hw/scsi/mptsas.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
index 4176e87..929404f 100644
--- a/hw/scsi/mptsas.c
+++ b/hw/scsi/mptsas.c
@@ -1431,6 +1431,7 @@ static void mptsas1068_class_init(ObjectClass *oc, void *data)
     dc->reset = mptsas_reset;
     dc->vmsd = &vmstate_mptsas;
     dc->desc = "LSI SAS 1068";
+    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
 }
 
 static const TypeInfo mptsas_info = {
-- 
1.8.3.1