From e91a411938afcbdf191df52448216e41bbcbd288 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 23 Nov 2019 18:15:22 +0100 Subject: usb: kbd: move USB_KBD_BOOT_REPORT_SIZE to usb.h Move constant USB_KBD_BOOT_REPORT_SIZE. This allows us to reuse it. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- include/usb.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/usb.h') diff --git a/include/usb.h b/include/usb.h index bcad552f85f..efb67ea33ff 100644 --- a/include/usb.h +++ b/include/usb.h @@ -242,6 +242,12 @@ int usb_host_eth_scan(int mode); #ifdef CONFIG_USB_KEYBOARD +/* + * USB Keyboard reports are 8 bytes in boot protocol. + * Appendix B of HID Device Class Definition 1.11 + */ +#define USB_KBD_BOOT_REPORT_SIZE 8 + int drv_usb_kbd_init(void); int usb_kbd_deregister(int force); -- cgit v1.2.3