[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 01/10][TRIVIAL] adb: add to input cat
From: |
Thomas Huth |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 01/10][TRIVIAL] adb: add to input category |
Date: |
Mon, 28 Sep 2015 12:44:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 26/09/15 18:22, Laurent Vivier wrote:
> 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 <address@hidden>
> ---
> hw/input/adb.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/input/adb.c b/hw/input/adb.c
> index a18eea2..09eead9 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;
Reviewed-by: Thomas Huth <address@hidden>
- [Qemu-ppc] [PATCH 05/10][TRIVIAL] cuda: add to bridge category, (continued)
- [Qemu-ppc] [PATCH 05/10][TRIVIAL] cuda: add to bridge category, Laurent Vivier, 2015/09/26
- [Qemu-ppc] [PATCH 02/10][TRIVIAL] cmd646: add to storage category, Laurent Vivier, 2015/09/26
- [Qemu-ppc] [PATCH 08/10][TRIVIAL] macio: add to bridge category, Laurent Vivier, 2015/09/26
- [Qemu-ppc] [PATCH 06/10][TRIVIAL] macio-ide: add to storage category, Laurent Vivier, 2015/09/26
- [Qemu-ppc] [PATCH 07/10][TRIVIAL] uninorth: add to bridge category, Laurent Vivier, 2015/09/26
- [Qemu-ppc] [PATCH 01/10][TRIVIAL] adb: add to input category, Laurent Vivier, 2015/09/26
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 01/10][TRIVIAL] adb: add to input category,
Thomas Huth <=
- [Qemu-ppc] [PATCH 09/10][TRIVIAL] macio-nvram: add to misc category, Laurent Vivier, 2015/09/26
- [Qemu-ppc] [PATCH 03/10][TRIVIAL] escc: add to input category, Laurent Vivier, 2015/09/26
- [Qemu-ppc] [PATCH 10/10][TRIVIAL] openpic: add to misc category, Laurent Vivier, 2015/09/26