diff options
author | Mike Isely <isely@pobox.com> | 2006-06-25 19:04:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-26 23:17:24 -0400 |
commit | 4f1a3e5bc4e541477729c2ab888c761342329920 (patch) | |
tree | b4a2d48ae4a80f977e833ba30e6623475c9df196 /drivers/media | |
parent | c05c0462da0e3aac70ec5316ea500f9a7499cca7 (diff) |
V4L/DVB (4237): Move LOG_STATUS bracketing to a different part of the pvrusb2 driver
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 3 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index e8ea472fe2d0..872705633048 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -2236,11 +2236,14 @@ struct pvr2_stream *pvr2_hdw_get_video_stream(struct pvr2_hdw *hp) | |||
2236 | 2236 | ||
2237 | void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw) | 2237 | void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw) |
2238 | { | 2238 | { |
2239 | int nr = pvr2_hdw_get_unit_number(hdw); | ||
2239 | LOCK_TAKE(hdw->big_lock); do { | 2240 | LOCK_TAKE(hdw->big_lock); do { |
2240 | hdw->log_requested = !0; | 2241 | hdw->log_requested = !0; |
2242 | printk(KERN_INFO "pvrusb2: ================= START STATUS CARD #%d =================\n", nr); | ||
2241 | pvr2_i2c_core_check_stale(hdw); | 2243 | pvr2_i2c_core_check_stale(hdw); |
2242 | hdw->log_requested = 0; | 2244 | hdw->log_requested = 0; |
2243 | pvr2_i2c_core_sync(hdw); | 2245 | pvr2_i2c_core_sync(hdw); |
2246 | printk(KERN_INFO "pvrusb2: ================== END STATUS CARD #%d ==================\n", nr); | ||
2244 | } while (0); LOCK_GIVE(hdw->big_lock); | 2247 | } while (0); LOCK_GIVE(hdw->big_lock); |
2245 | } | 2248 | } |
2246 | 2249 | ||
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index e93e2aa81f30..dda560cd1c06 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -578,11 +578,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, | |||
578 | 578 | ||
579 | case VIDIOC_LOG_STATUS: | 579 | case VIDIOC_LOG_STATUS: |
580 | { | 580 | { |
581 | int nr = pvr2_hdw_get_unit_number(hdw); | ||
582 | |||
583 | printk(KERN_INFO "pvrusb2: ================= START STATUS CARD #%d =================\n", nr); | ||
584 | pvr2_hdw_trigger_module_log(hdw); | 581 | pvr2_hdw_trigger_module_log(hdw); |
585 | printk(KERN_INFO "pvrusb2: ================== END STATUS CARD #%d ==================\n", nr); | ||
586 | ret = 0; | 582 | ret = 0; |
587 | break; | 583 | break; |
588 | } | 584 | } |