diff options
| author | Laurent Vivier | 2015-09-26 18:22:03 +0200 |
|---|---|---|
| committer | David Gibson | 2015-10-23 03:35:17 +0200 |
| commit | 32f3a8992ea28a194678832eec1e1ffc09cbb7b1 (patch) | |
| tree | 8a505e95ffb56eaf792c1d7700a6313cc59d0949 | |
| parent | ppc/spapr: Add "ibm,pa-features" property to the device-tree (diff) | |
| download | qemu-32f3a8992ea28a194678832eec1e1ffc09cbb7b1.tar.gz qemu-32f3a8992ea28a194678832eec1e1ffc09cbb7b1.tar.xz qemu-32f3a8992ea28a194678832eec1e1ffc09cbb7b1.zip | |
adb: add to input category
The Apple Desktop Bus is used to connect a keyboard and a mouse,
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>
| -rw-r--r-- | hw/input/adb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/input/adb.c b/hw/input/adb.c index a18eea2652..09eead96b6 100644 --- a/hw/input/adb.c +++ b/hw/input/adb.c @@ -362,6 +362,7 @@ static void adb_kbd_class_init(ObjectClass *oc, void *data) akc->parent_realize = dc->realize; dc->realize = adb_kbd_realizefn; + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); adc->devreq = adb_kbd_request; dc->reset = adb_kbd_reset; @@ -566,6 +567,7 @@ static void adb_mouse_class_init(ObjectClass *oc, void *data) amc->parent_realize = dc->realize; dc->realize = adb_mouse_realizefn; + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); adc->devreq = adb_mouse_request; dc->reset = adb_mouse_reset; |
