Skip to contentSkip to conversation

scsi: mptsas: Mark as storage device

PATCH Applied Guenter Roeck 3 participants 3 messages Jul 31, 2018 – Aug 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: mptsas: Mark as storage device

mptsas1068 is currently listed as uncategorized device. Mark it as storage device.

---
 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
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Guenter Roeck

mptsas1068 is currently listed as uncategorized device. Mark it as storage device.

---
 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
2.7.4
#2 lore raw
In reply to Guenter Roeck
Quoted 14 lines · Guenter Roeck

mptsas1068 is currently listed as uncategorized device. Mark it as storage device.

---
 hw/scsi/mptsas.c | 1 +
 1 file changed, 1 insertion(+)
hw/scsi/mptsas.c +0 -0
index 4176e87..929404f 100644

hw/scsi/mptsas.c static void mptsas1068_class_init(ObjectClass *oc, void *data) · line 1437

Quoted 7 lines
hw/scsi/mptsas.c +1 -0
@@ -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 = {

Queued, thanks.

Paolo