summaryrefslogtreecommitdiff
path: root/common/usb_kbd.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-09-24 14:06:07 +0200
committerMarek Vasut <marex@denx.de>2014-11-04 06:04:00 +0100
commitbe17e752f31f65d5e32d507d31819e6106d3a5bf (patch)
treeffadda055914b836e67e136b60a080afd17cbad9 /common/usb_kbd.c
parent8460b89a6d82ce06c712823973eda6cdb262e9d5 (diff)
downloadu-boot-imx-be17e752f31f65d5e32d507d31819e6106d3a5bf.zip
u-boot-imx-be17e752f31f65d5e32d507d31819e6106d3a5bf.tar.gz
u-boot-imx-be17e752f31f65d5e32d507d31819e6106d3a5bf.tar.bz2
usb: kbd: Remove unused usb_kbd_generic_poll function
This is not used anywhere, so lets remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'common/usb_kbd.c')
-rw-r--r--common/usb_kbd.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index fdc083c..cb869ac 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -116,32 +116,6 @@ extern int __maybe_unused net_busy_flag;
/* The period of time between two calls of usb_kbd_testc(). */
static unsigned long __maybe_unused kbd_testc_tms;
-/* Generic keyboard event polling. */
-void usb_kbd_generic_poll(void)
-{
- struct stdio_dev *dev;
- struct usb_device *usb_kbd_dev;
- struct usb_kbd_pdata *data;
- struct usb_interface *iface;
- struct usb_endpoint_descriptor *ep;
- int pipe;
- int maxp;
-
- /* Get the pointer to USB Keyboard device pointer */
- dev = stdio_get_by_name(DEVNAME);
- usb_kbd_dev = (struct usb_device *)dev->priv;
- data = usb_kbd_dev->privptr;
- iface = &usb_kbd_dev->config.if_desc[0];
- ep = &iface->ep_desc[0];
- pipe = usb_rcvintpipe(usb_kbd_dev, ep->bEndpointAddress);
-
- /* Submit a interrupt transfer request */
- maxp = usb_maxpacket(usb_kbd_dev, pipe);
- usb_submit_int_msg(usb_kbd_dev, pipe, data->new,
- min(maxp, USB_KBD_BOOT_REPORT_SIZE),
- ep->bInterval);
-}
-
/* Puts character in the queue and sets up the in and out pointer. */
static void usb_kbd_put_queue(struct usb_kbd_pdata *data, char c)
{