diff options
Diffstat (limited to 'drivers/media/video/pwc/pwc-if.c')
-rw-r--r-- | drivers/media/video/pwc/pwc-if.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index e0a453a6543d..423fa7c2d0c9 100644 --- a/drivers/media/video/pwc/pwc-if.c +++ b/drivers/media/video/pwc/pwc-if.c | |||
@@ -130,8 +130,8 @@ static int default_fbufs = 3; /* Default number of frame buffers */ | |||
130 | #ifdef CONFIG_USB_PWC_DEBUG | 130 | #ifdef CONFIG_USB_PWC_DEBUG |
131 | int pwc_trace = PWC_DEBUG_LEVEL; | 131 | int pwc_trace = PWC_DEBUG_LEVEL; |
132 | #endif | 132 | #endif |
133 | static int power_save = 0; | 133 | static int power_save; |
134 | static int led_on = 100, led_off = 0; /* defaults to LED that is on while in use */ | 134 | static int led_on = 100, led_off; /* defaults to LED that is on while in use */ |
135 | static int pwc_preferred_compression = 1; /* 0..3 = uncompressed..high */ | 135 | static int pwc_preferred_compression = 1; /* 0..3 = uncompressed..high */ |
136 | static struct { | 136 | static struct { |
137 | int type; | 137 | int type; |
@@ -159,7 +159,9 @@ static const struct file_operations pwc_fops = { | |||
159 | .poll = pwc_video_poll, | 159 | .poll = pwc_video_poll, |
160 | .mmap = pwc_video_mmap, | 160 | .mmap = pwc_video_mmap, |
161 | .ioctl = pwc_video_ioctl, | 161 | .ioctl = pwc_video_ioctl, |
162 | #ifdef CONFIG_COMPAT | ||
162 | .compat_ioctl = v4l_compat_ioctl32, | 163 | .compat_ioctl = v4l_compat_ioctl32, |
164 | #endif | ||
163 | .llseek = no_llseek, | 165 | .llseek = no_llseek, |
164 | }; | 166 | }; |
165 | static struct video_device pwc_template = { | 167 | static struct video_device pwc_template = { |
@@ -487,7 +489,7 @@ static void pwc_reset_buffers(struct pwc_device *pdev) | |||
487 | int i; | 489 | int i; |
488 | unsigned long flags; | 490 | unsigned long flags; |
489 | 491 | ||
490 | PWC_DEBUG_MEMORY(">> %s __enter__\n", __FUNCTION__); | 492 | PWC_DEBUG_MEMORY(">> %s __enter__\n", __func__); |
491 | 493 | ||
492 | spin_lock_irqsave(&pdev->ptrlock, flags); | 494 | spin_lock_irqsave(&pdev->ptrlock, flags); |
493 | pdev->full_frames = NULL; | 495 | pdev->full_frames = NULL; |
@@ -509,7 +511,7 @@ static void pwc_reset_buffers(struct pwc_device *pdev) | |||
509 | pdev->fill_image = 0; | 511 | pdev->fill_image = 0; |
510 | spin_unlock_irqrestore(&pdev->ptrlock, flags); | 512 | spin_unlock_irqrestore(&pdev->ptrlock, flags); |
511 | 513 | ||
512 | PWC_DEBUG_MEMORY("<< %s __leaving__\n", __FUNCTION__); | 514 | PWC_DEBUG_MEMORY("<< %s __leaving__\n", __func__); |
513 | } | 515 | } |
514 | 516 | ||
515 | 517 | ||
@@ -786,8 +788,8 @@ static void pwc_isoc_handler(struct urb *urb) | |||
786 | } /* ..status == 0 */ | 788 | } /* ..status == 0 */ |
787 | else { | 789 | else { |
788 | /* This is normally not interesting to the user, unless | 790 | /* This is normally not interesting to the user, unless |
789 | * you are really debugging something */ | 791 | * you are really debugging something, default = 0 */ |
790 | static int iso_error = 0; | 792 | static int iso_error; |
791 | iso_error++; | 793 | iso_error++; |
792 | if (iso_error < 20) | 794 | if (iso_error < 20) |
793 | PWC_DEBUG_FLOW("Iso frame %d of USB has error %d\n", i, fst); | 795 | PWC_DEBUG_FLOW("Iso frame %d of USB has error %d\n", i, fst); |
@@ -1426,7 +1428,7 @@ static int pwc_video_mmap(struct file *file, struct vm_area_struct *vma) | |||
1426 | unsigned long page, pos = 0; | 1428 | unsigned long page, pos = 0; |
1427 | int index; | 1429 | int index; |
1428 | 1430 | ||
1429 | PWC_DEBUG_MEMORY(">> %s\n", __FUNCTION__); | 1431 | PWC_DEBUG_MEMORY(">> %s\n", __func__); |
1430 | pdev = vdev->priv; | 1432 | pdev = vdev->priv; |
1431 | size = vma->vm_end - vma->vm_start; | 1433 | size = vma->vm_end - vma->vm_start; |
1432 | start = vma->vm_start; | 1434 | start = vma->vm_start; |