diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-01 02:57:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:24 -0400 |
commit | e6574f2fbecdb8af807169d345c10131ae060a88 (patch) | |
tree | 9923d1065397b9796a476cac238bacbdf1d820d1 /drivers/media/video/pvrusb2 | |
parent | 868f985c2fb85b5f32785bb55a349d180a30f3d3 (diff) |
V4L/DVB (11373): v4l2-common: add explicit v4l2_device pointer as first arg to new_(probed)_subdev
The functions v4l2_i2c_new_subdev and v4l2_i2c_new_probed_subdev relied on
i2c_get_adapdata to return the v4l2_device. However, this is not always
possible on embedded platforms. So modify the API to pass the v4l2_device
pointer explicitly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 2ee9d4d4c55c..d9d974a8f52a 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -2039,7 +2039,7 @@ static int pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, | |||
2039 | "Module ID %u:" | 2039 | "Module ID %u:" |
2040 | " Setting up with specified i2c address 0x%x", | 2040 | " Setting up with specified i2c address 0x%x", |
2041 | mid, i2caddr[0]); | 2041 | mid, i2caddr[0]); |
2042 | sd = v4l2_i2c_new_subdev(&hdw->i2c_adap, | 2042 | sd = v4l2_i2c_new_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, |
2043 | fname, fname, | 2043 | fname, fname, |
2044 | i2caddr[0]); | 2044 | i2caddr[0]); |
2045 | } else { | 2045 | } else { |
@@ -2047,7 +2047,7 @@ static int pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, | |||
2047 | "Module ID %u:" | 2047 | "Module ID %u:" |
2048 | " Setting up with address probe list", | 2048 | " Setting up with address probe list", |
2049 | mid); | 2049 | mid); |
2050 | sd = v4l2_i2c_new_probed_subdev(&hdw->i2c_adap, | 2050 | sd = v4l2_i2c_new_probed_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, |
2051 | fname, fname, | 2051 | fname, fname, |
2052 | i2caddr); | 2052 | i2caddr); |
2053 | } | 2053 | } |