Commit f1125f81 authored by Deng-Cheng Zhu's avatar Deng-Cheng Zhu Committed by Greg Kroah-Hartman

USB/host: Use existing macros instead of hard-coded values in uhci-debug.c

Now that UHCI IO registers have been defined in uhci-hcd.h, use them.
Reviewed-by: default avatarJames Hogan <james.hogan@imgtec.com>
Signed-off-by: default avatarDeng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36a87587
...@@ -310,14 +310,14 @@ static int uhci_show_status(struct uhci_hcd *uhci, char *buf, int len) ...@@ -310,14 +310,14 @@ static int uhci_show_status(struct uhci_hcd *uhci, char *buf, int len)
unsigned short portsc1, portsc2; unsigned short portsc1, portsc2;
usbcmd = uhci_readw(uhci, 0); usbcmd = uhci_readw(uhci, USBCMD);
usbstat = uhci_readw(uhci, 2); usbstat = uhci_readw(uhci, USBSTS);
usbint = uhci_readw(uhci, 4); usbint = uhci_readw(uhci, USBINTR);
usbfrnum = uhci_readw(uhci, 6); usbfrnum = uhci_readw(uhci, USBFRNUM);
flbaseadd = uhci_readl(uhci, 8); flbaseadd = uhci_readl(uhci, USBFLBASEADD);
sof = uhci_readb(uhci, 12); sof = uhci_readb(uhci, USBSOF);
portsc1 = uhci_readw(uhci, 16); portsc1 = uhci_readw(uhci, USBPORTSC1);
portsc2 = uhci_readw(uhci, 18); portsc2 = uhci_readw(uhci, USBPORTSC2);
out += sprintf(out, " usbcmd = %04x %s%s%s%s%s%s%s%s\n", out += sprintf(out, " usbcmd = %04x %s%s%s%s%s%s%s%s\n",
usbcmd, usbcmd,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment