escc: add to input category
authorLaurent Vivier <laurent@vivier.eu>
Sat, 26 Sep 2015 16:22:05 +0000 (18:22 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Oct 2015 01:35:17 +0000 (12:35 +1100)
ESCC is a serial port controller, so add it
to the input category.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/char/escc.c

index ba653ef..9816154 100644 (file)
@@ -1035,6 +1035,7 @@ static void escc_class_init(ObjectClass *klass, void *data)
     dc->reset = escc_reset;
     dc->vmsd = &vmstate_escc;
     dc->props = escc_properties;
+    set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
 }
 
 static const TypeInfo escc_info = {