aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2009-03-06 22:05:00 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:34 -0400
commitd8f5b9ba82482cab344c2d54c2c487b607e34864 (patch)
treeab203672265de31dad401483fdd2e1956367fdb4 /drivers/media/video/pvrusb2/pvrusb2-hdw.c
parented3261a85993a1f2009a63758e70ac54547b2697 (diff)
V4L/DVB (11165): pvrusb2: Tie in debug register access to sub-devices
Implement tie-in for v4l2 debug register access such that the appropriate attached sub-device is handled. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 9669d6a4fb9e..4e50e7bc5745 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -4925,7 +4925,10 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw,
4925 req.match = *match; 4925 req.match = *match;
4926 req.reg = reg_id; 4926 req.reg = reg_id;
4927 if (setFl) req.val = *val_ptr; 4927 if (setFl) req.val = *val_ptr;
4928 mutex_lock(&hdw->i2c_list_lock); do { 4928 /* It would be nice to know if a sub-device answered the request */
4929 v4l2_device_call_all(&hdw->v4l2_dev, 0, core, g_register, &req);
4930 if (!setFl) *val_ptr = req.val;
4931 if (!okFl) mutex_lock(&hdw->i2c_list_lock); do {
4929 list_for_each_entry(cp, &hdw->i2c_clients, list) { 4932 list_for_each_entry(cp, &hdw->i2c_clients, list) {
4930 if (!v4l2_chip_match_i2c_client( 4933 if (!v4l2_chip_match_i2c_client(
4931 cp->client, 4934 cp->client,