diff options
Diffstat (limited to 'drivers/media/video/usbvideo/ultracam.c')
-rw-r--r-- | drivers/media/video/usbvideo/ultracam.c | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/drivers/media/video/usbvideo/ultracam.c b/drivers/media/video/usbvideo/ultracam.c index 9544e644bf0d..9714baab7833 100644 --- a/drivers/media/video/usbvideo/ultracam.c +++ b/drivers/media/video/usbvideo/ultracam.c | |||
@@ -156,10 +156,11 @@ static int ultracam_veio( | |||
156 | sizeof(cp), | 156 | sizeof(cp), |
157 | 1000); | 157 | 1000); |
158 | #if 1 | 158 | #if 1 |
159 | info("USB => %02x%02x%02x%02x%02x%02x%02x%02x " | 159 | dev_info(&uvd->dev->dev, |
160 | "(req=$%02x val=$%04x ind=$%04x)", | 160 | "USB => %02x%02x%02x%02x%02x%02x%02x%02x " |
161 | cp[0],cp[1],cp[2],cp[3],cp[4],cp[5],cp[6],cp[7], | 161 | "(req=$%02x val=$%04x ind=$%04x)\n", |
162 | req, value, index); | 162 | cp[0],cp[1],cp[2],cp[3],cp[4],cp[5],cp[6],cp[7], |
163 | req, value, index); | ||
163 | #endif | 164 | #endif |
164 | } else { | 165 | } else { |
165 | i = usb_control_msg( | 166 | i = usb_control_msg( |
@@ -517,19 +518,20 @@ static int ultracam_probe(struct usb_interface *intf, const struct usb_device_id | |||
517 | unsigned char video_ep = 0; | 518 | unsigned char video_ep = 0; |
518 | 519 | ||
519 | if (debug >= 1) | 520 | if (debug >= 1) |
520 | info("ultracam_probe(%p)", intf); | 521 | dev_info(&intf->dev, "ultracam_probe\n"); |
521 | 522 | ||
522 | /* We don't handle multi-config cameras */ | 523 | /* We don't handle multi-config cameras */ |
523 | if (dev->descriptor.bNumConfigurations != 1) | 524 | if (dev->descriptor.bNumConfigurations != 1) |
524 | return -ENODEV; | 525 | return -ENODEV; |
525 | 526 | ||
526 | info("IBM Ultra camera found (rev. 0x%04x)", | 527 | dev_info(&intf->dev, "IBM Ultra camera found (rev. 0x%04x)\n", |
527 | le16_to_cpu(dev->descriptor.bcdDevice)); | 528 | le16_to_cpu(dev->descriptor.bcdDevice)); |
528 | 529 | ||
529 | /* Validate found interface: must have one ISO endpoint */ | 530 | /* Validate found interface: must have one ISO endpoint */ |
530 | nas = intf->num_altsetting; | 531 | nas = intf->num_altsetting; |
531 | if (debug > 0) | 532 | if (debug > 0) |
532 | info("Number of alternate settings=%d.", nas); | 533 | dev_info(&intf->dev, "Number of alternate settings=%d.\n", |
534 | nas); | ||
533 | if (nas < 8) { | 535 | if (nas < 8) { |
534 | err("Too few alternate settings for this camera!"); | 536 | err("Too few alternate settings for this camera!"); |
535 | return -ENODEV; | 537 | return -ENODEV; |
@@ -576,7 +578,9 @@ static int ultracam_probe(struct usb_interface *intf, const struct usb_device_id | |||
576 | actInterface = i; | 578 | actInterface = i; |
577 | maxPS = le16_to_cpu(endpoint->wMaxPacketSize); | 579 | maxPS = le16_to_cpu(endpoint->wMaxPacketSize); |
578 | if (debug > 0) | 580 | if (debug > 0) |
579 | info("Active setting=%d. maxPS=%d.", i, maxPS); | 581 | dev_info(&intf->dev, |
582 | "Active setting=%d. " | ||
583 | "maxPS=%d.\n", i, maxPS); | ||
580 | } else { | 584 | } else { |
581 | /* Got another active alt. setting */ | 585 | /* Got another active alt. setting */ |
582 | if (maxPS < le16_to_cpu(endpoint->wMaxPacketSize)) { | 586 | if (maxPS < le16_to_cpu(endpoint->wMaxPacketSize)) { |
@@ -584,8 +588,11 @@ static int ultracam_probe(struct usb_interface *intf, const struct usb_device_id | |||
584 | actInterface = i; | 588 | actInterface = i; |
585 | maxPS = le16_to_cpu(endpoint->wMaxPacketSize); | 589 | maxPS = le16_to_cpu(endpoint->wMaxPacketSize); |
586 | if (debug > 0) { | 590 | if (debug > 0) { |
587 | info("Even better ctive setting=%d. maxPS=%d.", | 591 | dev_info(&intf->dev, |
588 | i, maxPS); | 592 | "Even better ctive " |
593 | "setting=%d. " | ||
594 | "maxPS=%d.\n", | ||
595 | i, maxPS); | ||
589 | } | 596 | } |
590 | } | 597 | } |
591 | } | 598 | } |