summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
diff options
context:
space:
mode:
authorMike Isely2009-03-07 03:42:20 +0100
committerMauro Carvalho Chehab2009-03-30 17:43:33 +0200
commite9c64a78dbd7c4f6c4a31c4040f340f732bf4ec5 (patch)
treeb8bdf899e92f241d4b7581276b62461a968f3f76 /drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
parentV4L/DVB (11157): pvrusb2: whitespace trivial tweaks (diff)
downloadkernel-qcow2-linux-e9c64a78dbd7c4f6c4a31c4040f340f732bf4ec5.tar.gz
kernel-qcow2-linux-e9c64a78dbd7c4f6c4a31c4040f340f732bf4ec5.tar.xz
kernel-qcow2-linux-e9c64a78dbd7c4f6c4a31c4040f340f732bf4ec5.zip
V4L/DVB (11158): pvrusb2: New device attribute mechanism to specify sub-devices
Set up new mechanism for declaring and loading appropriate sub-devices when driver initializes. This is another part of the v4l2-subdev adoption. 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-i2c-core.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-i2c-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
index 2ba429f1bc8e..1129fe40c04c 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
@@ -608,6 +608,7 @@ void pvr2_i2c_core_init(struct pvr2_hdw *hdw)
hdw->i2c_adap.algo = &hdw->i2c_algo;
hdw->i2c_adap.algo_data = hdw;
hdw->i2c_linked = !0;
+ i2c_set_adapdata(&hdw->i2c_adap, &hdw->v4l2_dev);
i2c_add_adapter(&hdw->i2c_adap);
if (hdw->i2c_func[0x18] == i2c_24xxx_ir) {
/* Probe for a different type of IR receiver on this