aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/se401.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/se401.c')
-rw-r--r--drivers/media/video/se401.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/media/video/se401.c b/drivers/media/video/se401.c
index d5d7d6cf734a..1cd629380f71 100644
--- a/drivers/media/video/se401.c
+++ b/drivers/media/video/se401.c
@@ -35,7 +35,7 @@ static const char version[] = "0.24";
35#include <linux/usb.h> 35#include <linux/usb.h>
36#include "se401.h" 36#include "se401.h"
37 37
38static int flickerless=0; 38static int flickerless;
39static int video_nr = -1; 39static int video_nr = -1;
40 40
41static struct usb_device_id device_table [] = { 41static struct usb_device_id device_table [] = {
@@ -300,10 +300,10 @@ static void se401_button_irq(struct urb *urb)
300 case -ENOENT: 300 case -ENOENT:
301 case -ESHUTDOWN: 301 case -ESHUTDOWN:
302 /* this urb is terminated, clean up */ 302 /* this urb is terminated, clean up */
303 dbg("%s - urb shutting down with status: %d", __FUNCTION__, urb->status); 303 dbg("%s - urb shutting down with status: %d", __func__, urb->status);
304 return; 304 return;
305 default: 305 default:
306 dbg("%s - nonzero urb status received: %d", __FUNCTION__, urb->status); 306 dbg("%s - nonzero urb status received: %d", __func__, urb->status);
307 goto exit; 307 goto exit;
308 } 308 }
309 309
@@ -315,7 +315,7 @@ exit:
315 status = usb_submit_urb (urb, GFP_ATOMIC); 315 status = usb_submit_urb (urb, GFP_ATOMIC);
316 if (status) 316 if (status)
317 err ("%s - usb_submit_urb failed with result %d", 317 err ("%s - usb_submit_urb failed with result %d",
318 __FUNCTION__, status); 318 __func__, status);
319} 319}
320 320
321static void se401_video_irq(struct urb *urb) 321static void se401_video_irq(struct urb *urb)
@@ -1224,7 +1224,9 @@ static const struct file_operations se401_fops = {
1224 .read = se401_read, 1224 .read = se401_read,
1225 .mmap = se401_mmap, 1225 .mmap = se401_mmap,
1226 .ioctl = se401_ioctl, 1226 .ioctl = se401_ioctl,
1227#ifdef CONFIG_COMPAT
1227 .compat_ioctl = v4l_compat_ioctl32, 1228 .compat_ioctl = v4l_compat_ioctl32,
1229#endif
1228 .llseek = no_llseek, 1230 .llseek = no_llseek,
1229}; 1231};
1230static struct video_device se401_template = { 1232static struct video_device se401_template = {
@@ -1279,7 +1281,7 @@ static int se401_init(struct usb_se401 *se401, int button)
1279 rc=se401_sndctrl(0, se401, SE401_REQ_GET_HEIGHT, 0, cp, sizeof(cp)); 1281 rc=se401_sndctrl(0, se401, SE401_REQ_GET_HEIGHT, 0, cp, sizeof(cp));
1280 se401->cheight=cp[0]+cp[1]*256; 1282 se401->cheight=cp[0]+cp[1]*256;
1281 1283
1282 if (!cp[2] && SE401_FORMAT_BAYER) { 1284 if (!(cp[2] & SE401_FORMAT_BAYER)) {
1283 err("Bayer format not supported!"); 1285 err("Bayer format not supported!");
1284 return 1; 1286 return 1;
1285 } 1287 }