Skip to content

Commit

Permalink
adb: add to input category
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vivier authored and dgibson committed Oct 23, 2015
1 parent 90da0d5 commit 32f3a89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/input/adb.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 32f3a89

Please sign in to comment.