From cbe9ed73f905b532918603c04807bfa84d6051fb Mon Sep 17 00:00:00 2001 From: kumar sourav Date: Fri, 25 Jan 2019 20:44:40 +0530 Subject: hw: input: set category of the i8042 device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sets the category of i8042 device as DEVICE_CATEGORY_INPUT Devices should be assigned to one of DEVICE_CATEGORY_XXXX. Signed-off-by: kumar sourav Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin Message-Id: <20190125151440.13794-1-sourav.jb1988@gmail.com> Signed-off-by: Laurent Vivier --- hw/input/pckbd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/input') diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index 3e66713..72e7d5f 100644 --- a/hw/input/pckbd.c +++ b/hw/input/pckbd.c @@ -574,6 +574,7 @@ static void i8042_class_initfn(ObjectClass *klass, void *data) dc->realize = i8042_realizefn; dc->vmsd = &vmstate_kbd_isa; + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); } static const TypeInfo i8042_info = { -- cgit v1.1