hw/display/macfb: Classify the "nubus-macfb" as display device
authorThomas Huth <thuth@redhat.com>
Mon, 31 May 2021 07:32:55 +0000 (09:32 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 5 Jun 2021 19:21:56 +0000 (21:21 +0200)
The "nubus-macfb" currently shows up as uncategorized device in
the output of "-device help". Put it into the display category
to fix this ugliness.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210531073255.46286-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/display/macfb.c

index ff8bdb846b97dc56c57ff70455f94bf5b6fcbc45..d8183b9bbde6f4d09c9bed1626fe7d6b9d773bcd 100644 (file)
@@ -450,6 +450,7 @@ static void macfb_nubus_class_init(ObjectClass *klass, void *data)
     dc->desc = "Nubus Macintosh framebuffer";
     dc->reset = macfb_nubus_reset;
     dc->vmsd = &vmstate_macfb;
+    set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
     device_class_set_props(dc, macfb_nubus_properties);
 }