libpayload: Make USB HID support multiple keyboards
commitcd587f110bec55ff24a73a775a8c757332715f3f
authorNico Huber <nico.huber@secunet.com>
Fri, 23 Nov 2012 12:18:13 +0000 (23 13:18 +0100)
committerPatrick Georgi <patrick@georgi-clan.de>
Fri, 23 Nov 2012 17:19:06 +0000 (23 18:19 +0100)
treec7f62e3d8a5a8d05c80301531971f9ffcbdd3bc7
parentaf169f4dd515f52e26c4c476c3340a710db69887
libpayload: Make USB HID support multiple keyboards

The USB HID driver had some static variables with keyboard state. This
moves them to the driver's instance, so multiple attached keyboards
don't effect each other.

Change-Id: I3f1ccfdea95062b443cebe510abf2f72fdeb1916
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/1907
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Tested-by: build bot (Jenkins)
payloads/libpayload/drivers/usb/usbhid.c