aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/stv680.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/stv680.c')
-rw-r--r--drivers/media/video/stv680.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/media/video/stv680.c b/drivers/media/video/stv680.c
index afc32aa56fde..d7f130bedb5f 100644
--- a/drivers/media/video/stv680.c
+++ b/drivers/media/video/stv680.c
@@ -72,15 +72,18 @@
72#include "stv680.h" 72#include "stv680.h"
73 73
74static int video_nr = -1; 74static int video_nr = -1;
75static int swapRGB = 0; /* default for auto sleect */
76static int swapRGB_on = 0; /* default to allow auto select; -1=swap never, +1= swap always */
77 75
78static unsigned int debug = 0; 76static int swapRGB; /* 0 = default for auto select */
77
78/* 0 = default to allow auto select; -1 = swap never, +1 = swap always */
79static int swapRGB_on;
80
81static unsigned int debug;
79 82
80#define PDEBUG(level, fmt, args...) \ 83#define PDEBUG(level, fmt, args...) \
81 do { \ 84 do { \
82 if (debug >= level) \ 85 if (debug >= level) \
83 info("[%s:%d] " fmt, __FUNCTION__, __LINE__ , ## args); \ 86 info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \
84 } while (0) 87 } while (0)
85 88
86 89
@@ -1391,7 +1394,9 @@ static const struct file_operations stv680_fops = {
1391 .read = stv680_read, 1394 .read = stv680_read,
1392 .mmap = stv680_mmap, 1395 .mmap = stv680_mmap,
1393 .ioctl = stv680_ioctl, 1396 .ioctl = stv680_ioctl,
1397#ifdef CONFIG_COMPAT
1394 .compat_ioctl = v4l_compat_ioctl32, 1398 .compat_ioctl = v4l_compat_ioctl32,
1399#endif
1395 .llseek = no_llseek, 1400 .llseek = no_llseek,
1396}; 1401};
1397static struct video_device stv680_template = { 1402static struct video_device stv680_template = {