aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2009-12-10 08:47:13 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-15 21:17:57 -0500
commit50462eb065e12f45851a9959a90d46b758944552 (patch)
treefea5b79f1852183c5eaa3f079d5054dc78a828fa /drivers/staging
parent63b0d5ad20365edf8baf96cdbb8e7faf62501286 (diff)
V4L/DVB (13555): v4l: Use video_device_node_name() instead of the minor number
Instead of using the minor number in kernel log messages, use the device node name as returned by the video_device_node_name() function. This makes debug, informational and error messages easier to understand for end users. [mchehab.redhat.com: removed tm6000 changes as tm6000 is not ready yet for submission even on staging] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/cx25821/cx25821-audups11.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video0.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video1.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video2.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video3.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video4.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video5.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video6.c5
-rw-r--r--drivers/staging/cx25821/cx25821-video7.c5
-rw-r--r--drivers/staging/cx25821/cx25821-videoioctl.c5
-rw-r--r--drivers/staging/cx25821/cx25821-vidups10.c5
-rw-r--r--drivers/staging/cx25821/cx25821-vidups9.c5
12 files changed, 36 insertions, 24 deletions
diff --git a/drivers/staging/cx25821/cx25821-audups11.c b/drivers/staging/cx25821/cx25821-audups11.c
index e1364d1c976e..a2fcbf055ba5 100644
--- a/drivers/staging/cx25821/cx25821-audups11.c
+++ b/drivers/staging/cx25821/cx25821-audups11.c
@@ -94,12 +94,13 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 101
102 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 102 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
103 v4l2_type_names[type]);
103 104
104 /* allocate + initialize per filehandle data */ 105 /* allocate + initialize per filehandle data */
105 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 106 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video0.c b/drivers/staging/cx25821/cx25821-video0.c
index eb0fe8175517..9a474209cce7 100644
--- a/drivers/staging/cx25821/cx25821-video0.c
+++ b/drivers/staging/cx25821/cx25821-video0.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video1.c b/drivers/staging/cx25821/cx25821-video1.c
index 96ec2385bcdf..fc9c118d9bde 100644
--- a/drivers/staging/cx25821/cx25821-video1.c
+++ b/drivers/staging/cx25821/cx25821-video1.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video2.c b/drivers/staging/cx25821/cx25821-video2.c
index e659603c3fbe..746682945ebc 100644
--- a/drivers/staging/cx25821/cx25821-video2.c
+++ b/drivers/staging/cx25821/cx25821-video2.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video3.c b/drivers/staging/cx25821/cx25821-video3.c
index 873f0f83a893..0806e40e220f 100644
--- a/drivers/staging/cx25821/cx25821-video3.c
+++ b/drivers/staging/cx25821/cx25821-video3.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video4.c b/drivers/staging/cx25821/cx25821-video4.c
index c00e3f84e8eb..f44e1d47c356 100644
--- a/drivers/staging/cx25821/cx25821-video4.c
+++ b/drivers/staging/cx25821/cx25821-video4.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video5.c b/drivers/staging/cx25821/cx25821-video5.c
index 06396b86e98b..85028ea54842 100644
--- a/drivers/staging/cx25821/cx25821-video5.c
+++ b/drivers/staging/cx25821/cx25821-video5.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video6.c b/drivers/staging/cx25821/cx25821-video6.c
index c5410c1558e4..27afa03f14ba 100644
--- a/drivers/staging/cx25821/cx25821-video6.c
+++ b/drivers/staging/cx25821/cx25821-video6.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-video7.c b/drivers/staging/cx25821/cx25821-video7.c
index 274977eefcaf..055a7efa0b62 100644
--- a/drivers/staging/cx25821/cx25821-video7.c
+++ b/drivers/staging/cx25821/cx25821-video7.c
@@ -93,13 +93,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
93 93
94static int video_open(struct file *file) 94static int video_open(struct file *file)
95{ 95{
96 int minor = video_devdata(file)->minor; 96 struct video_device *vdev = video_devdata(file);
97 struct cx25821_dev *dev = video_drvdata(file); 97 struct cx25821_dev *dev = video_drvdata(file);
98 struct cx25821_fh *fh; 98 struct cx25821_fh *fh;
99 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 99 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
100 u32 pix_format; 100 u32 pix_format;
101 101
102 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 102 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
103 v4l2_type_names[type]);
103 104
104 /* allocate + initialize per filehandle data */ 105 /* allocate + initialize per filehandle data */
105 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 106 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-videoioctl.c b/drivers/staging/cx25821/cx25821-videoioctl.c
index 42ea8bfa9ed8..ae33355eb0d4 100644
--- a/drivers/staging/cx25821/cx25821-videoioctl.c
+++ b/drivers/staging/cx25821/cx25821-videoioctl.c
@@ -94,13 +94,14 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 u32 pix_format; 101 u32 pix_format;
102 102
103 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 103 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
104 v4l2_type_names[type]);
104 105
105 /* allocate + initialize per filehandle data */ 106 /* allocate + initialize per filehandle data */
106 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 107 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-vidups10.c b/drivers/staging/cx25821/cx25821-vidups10.c
index 4e0033fa205b..97db6cd43780 100644
--- a/drivers/staging/cx25821/cx25821-vidups10.c
+++ b/drivers/staging/cx25821/cx25821-vidups10.c
@@ -94,12 +94,13 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 101
102 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 102 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
103 v4l2_type_names[type]);
103 104
104 /* allocate + initialize per filehandle data */ 105 /* allocate + initialize per filehandle data */
105 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 106 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
diff --git a/drivers/staging/cx25821/cx25821-vidups9.c b/drivers/staging/cx25821/cx25821-vidups9.c
index 67fc082e3086..d06054f7e5a4 100644
--- a/drivers/staging/cx25821/cx25821-vidups9.c
+++ b/drivers/staging/cx25821/cx25821-vidups9.c
@@ -94,12 +94,13 @@ static struct videobuf_queue_ops cx25821_video_qops = {
94 94
95static int video_open(struct file *file) 95static int video_open(struct file *file)
96{ 96{
97 int minor = video_devdata(file)->minor; 97 struct video_device *vdev = video_devdata(file);
98 struct cx25821_dev *dev = video_drvdata(file); 98 struct cx25821_dev *dev = video_drvdata(file);
99 struct cx25821_fh *fh; 99 struct cx25821_fh *fh;
100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 100 enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
101 101
102 printk("open minor=%d type=%s\n", minor, v4l2_type_names[type]); 102 printk("open dev=%s type=%s\n", video_device_node_name(vdev),
103 v4l2_type_names[type]);
103 104
104 /* allocate + initialize per filehandle data */ 105 /* allocate + initialize per filehandle data */
105 fh = kzalloc(sizeof(*fh), GFP_KERNEL); 106 fh = kzalloc(sizeof(*fh), GFP_KERNEL);