USB: uhci: beautify source code
get rid of the line breaks in string constants. let comments within 80 with limitation. delete ' \' at the end of a statement. Signed-off-by: Chen Gang <gang.chen@asianux.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

کامیت شده توسط
Greg Kroah-Hartman

والد
f8f0302bbc
کامیت
3171fcabb1
@@ -449,17 +449,16 @@ static irqreturn_t uhci_irq(struct usb_hcd *hcd)
|
||||
|
||||
if (status & ~(USBSTS_USBINT | USBSTS_ERROR | USBSTS_RD)) {
|
||||
if (status & USBSTS_HSE)
|
||||
dev_err(uhci_dev(uhci), "host system error, "
|
||||
"PCI problems?\n");
|
||||
dev_err(uhci_dev(uhci),
|
||||
"host system error, PCI problems?\n");
|
||||
if (status & USBSTS_HCPE)
|
||||
dev_err(uhci_dev(uhci), "host controller process "
|
||||
"error, something bad happened!\n");
|
||||
dev_err(uhci_dev(uhci),
|
||||
"host controller process error, something bad happened!\n");
|
||||
if (status & USBSTS_HCH) {
|
||||
spin_lock(&uhci->lock);
|
||||
if (uhci->rh_state >= UHCI_RH_RUNNING) {
|
||||
dev_err(uhci_dev(uhci),
|
||||
"host controller halted, "
|
||||
"very bad!\n");
|
||||
"host controller halted, very bad!\n");
|
||||
if (debug > 1 && errbuf) {
|
||||
/* Print the schedule for debugging */
|
||||
uhci_sprint_schedule(uhci, errbuf,
|
||||
@@ -589,8 +588,8 @@ static int uhci_start(struct usb_hcd *hcd)
|
||||
UHCI_NUMFRAMES * sizeof(*uhci->frame),
|
||||
&uhci->frame_dma_handle, 0);
|
||||
if (!uhci->frame) {
|
||||
dev_err(uhci_dev(uhci), "unable to allocate "
|
||||
"consistent memory for frame list\n");
|
||||
dev_err(uhci_dev(uhci),
|
||||
"unable to allocate consistent memory for frame list\n");
|
||||
goto err_alloc_frame;
|
||||
}
|
||||
memset(uhci->frame, 0, UHCI_NUMFRAMES * sizeof(*uhci->frame));
|
||||
@@ -598,8 +597,8 @@ static int uhci_start(struct usb_hcd *hcd)
|
||||
uhci->frame_cpu = kcalloc(UHCI_NUMFRAMES, sizeof(*uhci->frame_cpu),
|
||||
GFP_KERNEL);
|
||||
if (!uhci->frame_cpu) {
|
||||
dev_err(uhci_dev(uhci), "unable to allocate "
|
||||
"memory for frame pointers\n");
|
||||
dev_err(uhci_dev(uhci),
|
||||
"unable to allocate memory for frame pointers\n");
|
||||
goto err_alloc_frame_cpu;
|
||||
}
|
||||
|
||||
@@ -734,8 +733,8 @@ static int uhci_rh_suspend(struct usb_hcd *hcd)
|
||||
*/
|
||||
else if (hcd->self.root_hub->do_remote_wakeup &&
|
||||
uhci->resuming_ports) {
|
||||
dev_dbg(uhci_dev(uhci), "suspend failed because a port "
|
||||
"is resuming\n");
|
||||
dev_dbg(uhci_dev(uhci),
|
||||
"suspend failed because a port is resuming\n");
|
||||
rc = -EBUSY;
|
||||
} else
|
||||
suspend_rh(uhci, UHCI_RH_SUSPENDED);
|
||||
@@ -826,8 +825,8 @@ static int uhci_count_ports(struct usb_hcd *hcd)
|
||||
|
||||
/* Anything greater than 7 is weird so we'll ignore it. */
|
||||
if (port > UHCI_RH_MAXCHILD) {
|
||||
dev_info(uhci_dev(uhci), "port count misdetected? "
|
||||
"forcing to 2 ports\n");
|
||||
dev_info(uhci_dev(uhci),
|
||||
"port count misdetected? forcing to 2 ports\n");
|
||||
port = 2;
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user