mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
usb_kdb: Get stdio_dev directly from sdev pointer
Driver supports only one instance of usb keyboard. Remove the first dependency on generic usbkbd DEVNAME. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
f8f3e0e539
commit
4fb67f47f1
1 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ static int usb_kbd_testc(struct stdio_dev *sdev)
|
|||
return 0;
|
||||
kbd_testc_tms = get_timer(0);
|
||||
#endif
|
||||
dev = stdio_get_by_name(DEVNAME);
|
||||
dev = stdio_get_by_name(sdev->name);
|
||||
usb_kbd_dev = (struct usb_device *)dev->priv;
|
||||
data = usb_kbd_dev->privptr;
|
||||
|
||||
|
@ -384,7 +384,7 @@ static int usb_kbd_getc(struct stdio_dev *sdev)
|
|||
struct usb_device *usb_kbd_dev;
|
||||
struct usb_kbd_pdata *data;
|
||||
|
||||
dev = stdio_get_by_name(DEVNAME);
|
||||
dev = stdio_get_by_name(sdev->name);
|
||||
usb_kbd_dev = (struct usb_device *)dev->priv;
|
||||
data = usb_kbd_dev->privptr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue