From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:33532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnhGx-0001ga-UM for qemu-devel@nongnu.org; Sun, 27 Jan 2019 05:02:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnhGx-0006B5-8q for qemu-devel@nongnu.org; Sun, 27 Jan 2019 05:02:39 -0500 From: kumar sourav Date: Sun, 27 Jan 2019 15:32:15 +0530 Message-Id: <20190127100215.12584-1-sourav.jb1988@gmail.com> Subject: [Qemu-devel] [PATCH] hw/input/adb.c: set device category of adb List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org Cc: david@gibson.dropbear.id.au, qemu-ppc@nongnu.org, qemu-devel@nongnu.org Sets the category of adb as DEVICE_CATEGORY_INPUT Devices should be assigned to one of DEVICE_CATEGORY_XXXX Signed-off-by: kumar sourav --- 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 = { -- 2.17.1