checkpatch.pl: Warn if the flattree API is used
[oweals/u-boot.git] / common / usb_kbd.c
index d6b340bbe7b8a42031cc1a1da09c7da8b6034eb6..b316807844b17150c5070c70f6bc9e39502f4695 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <stdio_dev.h>
@@ -95,12 +96,6 @@ static const u8 usb_special_keys[] = {
 #define USB_KBD_LEDMASK                \
        (USB_KBD_NUMLOCK | USB_KBD_CAPSLOCK | USB_KBD_SCROLLLOCK)
 
-/*
- * 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
-
 struct usb_kbd_pdata {
        unsigned long   intpipe;
        int             intpktsize;