aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/compat_ioctl32.c2
-rw-r--r--drivers/media/video/stradis.c1
-rw-r--r--drivers/media/video/w9968cf.c1
-rw-r--r--include/media/v4l2-common.h22
-rw-r--r--include/media/v4l2-ioctl.h21
5 files changed, 24 insertions, 23 deletions
diff --git a/drivers/media/video/compat_ioctl32.c b/drivers/media/video/compat_ioctl32.c
index 54de0cd482e9..bd5d9de5a008 100644
--- a/drivers/media/video/compat_ioctl32.c
+++ b/drivers/media/video/compat_ioctl32.c
@@ -17,7 +17,7 @@
17#include <linux/videodev2.h> 17#include <linux/videodev2.h>
18#include <linux/module.h> 18#include <linux/module.h>
19#include <linux/smp_lock.h> 19#include <linux/smp_lock.h>
20#include <media/v4l2-common.h> 20#include <media/v4l2-ioctl.h>
21 21
22#ifdef CONFIG_COMPAT 22#ifdef CONFIG_COMPAT
23 23
diff --git a/drivers/media/video/stradis.c b/drivers/media/video/stradis.c
index c109511f21ea..6ace8923b797 100644
--- a/drivers/media/video/stradis.c
+++ b/drivers/media/video/stradis.c
@@ -43,6 +43,7 @@
43#include <linux/vmalloc.h> 43#include <linux/vmalloc.h>
44#include <linux/videodev.h> 44#include <linux/videodev.h>
45#include <media/v4l2-common.h> 45#include <media/v4l2-common.h>
46#include <media/v4l2-ioctl.h>
46 47
47#include "saa7146.h" 48#include "saa7146.h"
48#include "saa7146reg.h" 49#include "saa7146reg.h"
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c
index 3f5a59dc5f8f..56bbeec542c5 100644
--- a/drivers/media/video/w9968cf.c
+++ b/drivers/media/video/w9968cf.c
@@ -42,6 +42,7 @@
42#include <asm/page.h> 42#include <asm/page.h>
43#include <asm/uaccess.h> 43#include <asm/uaccess.h>
44#include <linux/page-flags.h> 44#include <linux/page-flags.h>
45#include <media/v4l2-ioctl.h>
45 46
46#include "w9968cf.h" 47#include "w9968cf.h"
47#include "w9968cf_decoder.h" 48#include "w9968cf_decoder.h"
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index 8bbb526a5a24..07d3a9a575d1 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -28,12 +28,6 @@
28 28
29#include <media/v4l2-dev.h> 29#include <media/v4l2-dev.h>
30 30
31/* v4l debugging and diagnostics */
32
33/* Debug bitmask flags to be used on V4L2 */
34#define V4L2_DEBUG_IOCTL 0x01
35#define V4L2_DEBUG_IOCTL_ARG 0x02
36
37/* Common printk constucts for v4l-i2c drivers. These macros create a unique 31/* Common printk constucts for v4l-i2c drivers. These macros create a unique
38 prefix consisting of the driver name, the adapter number and the i2c 32 prefix consisting of the driver name, the adapter number and the i2c
39 address. */ 33 address. */
@@ -61,22 +55,6 @@
61 v4l_client_printk(KERN_DEBUG, client, fmt , ## arg); \ 55 v4l_client_printk(KERN_DEBUG, client, fmt , ## arg); \
62 } while (0) 56 } while (0)
63 57
64
65/* Use this macro for non-I2C drivers. Pass the driver name as the first arg. */
66#define v4l_print_ioctl(name, cmd) \
67 do { \
68 printk(KERN_DEBUG "%s: ", name); \
69 v4l_printk_ioctl(cmd); \
70 } while (0)
71
72/* Use this macro in I2C drivers where 'client' is the struct i2c_client
73 pointer */
74#define v4l_i2c_print_ioctl(client, cmd) \
75 do { \
76 v4l_client_printk(KERN_DEBUG, client, ""); \
77 v4l_printk_ioctl(cmd); \
78 } while (0)
79
80/* ------------------------------------------------------------------------- */ 58/* ------------------------------------------------------------------------- */
81 59
82/* Priority helper functions */ 60/* Priority helper functions */
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h
index 685b1b62a054..e319d1fffb82 100644
--- a/include/media/v4l2-ioctl.h
+++ b/include/media/v4l2-ioctl.h
@@ -20,6 +20,27 @@
20#include <linux/videodev2.h> 20#include <linux/videodev2.h>
21#endif 21#endif
22 22
23/* v4l debugging and diagnostics */
24
25/* Debug bitmask flags to be used on V4L2 */
26#define V4L2_DEBUG_IOCTL 0x01
27#define V4L2_DEBUG_IOCTL_ARG 0x02
28
29/* Use this macro for non-I2C drivers. Pass the driver name as the first arg. */
30#define v4l_print_ioctl(name, cmd) \
31 do { \
32 printk(KERN_DEBUG "%s: ", name); \
33 v4l_printk_ioctl(cmd); \
34 } while (0)
35
36/* Use this macro in I2C drivers where 'client' is the struct i2c_client
37 pointer */
38#define v4l_i2c_print_ioctl(client, cmd) \
39 do { \
40 v4l_client_printk(KERN_DEBUG, client, ""); \
41 v4l_printk_ioctl(cmd); \
42 } while (0)
43
23/* Video standard functions */ 44/* Video standard functions */
24extern const char *v4l2_norm_to_name(v4l2_std_id id); 45extern const char *v4l2_norm_to_name(v4l2_std_id id);
25extern int v4l2_video_std_construct(struct v4l2_standard *vs, 46extern int v4l2_video_std_construct(struct v4l2_standard *vs,