Skip to content

Commit cbe9ed7

Browse files
ku-souravvivier
authored andcommitted
hw: input: set category of the i8042 device
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 <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 89cb0c0 commit cbe9ed7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/input/pckbd.c

+1
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ static void i8042_class_initfn(ObjectClass *klass, void *data)
574574

575575
dc->realize = i8042_realizefn;
576576
dc->vmsd = &vmstate_kbd_isa;
577+
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
577578
}
578579

579580
static const TypeInfo i8042_info = {

0 commit comments

Comments
 (0)