Skip to contentSkip to conversation

hw/scsi/mptsas: Classify the device as "storage"

PATCH New Thomas Huth 1 participant 1 message Aug 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/scsi/mptsas: Classify the device as "storage"

Each device should ideally have a category, so put the mptsas1068 device into the "storage" category.

---
 hw/scsi/mptsas.c | 1 +
 1 file changed, 1 insertion(+)
hw/scsi/mptsas.c +1 -0
index 4176e87..929404f 100644
@@ -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 = {
Signature · 1 line
1.8.3.1