[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH] hw/input/adb.c: set device category of adb
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH] hw/input/adb.c: set device category of adb |
Date: |
Mon, 28 Jan 2019 00:27:32 +1100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Sun, Jan 27, 2019 at 03:32:15PM +0530, kumar sourav wrote:
> Sets the category of adb as DEVICE_CATEGORY_INPUT
> Devices should be assigned to one of DEVICE_CATEGORY_XXXX
>
> Signed-off-by: kumar sourav <address@hidden>
Applied, thanks.
> ---
> hw/input/adb.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/input/adb.c b/hw/input/adb.c
> index bbb40aeef1..6ca7c5641c 100644
> --- a/hw/input/adb.c
> +++ b/hw/input/adb.c
> @@ -126,6 +126,7 @@ static void adb_device_class_init(ObjectClass *oc, void
> *data)
> dc->realize = adb_device_realizefn;
> dc->props = adb_device_properties;
> dc->bus_type = TYPE_ADB_BUS;
> + set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
> }
>
> static const TypeInfo adb_device_type_info = {
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature