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/cx231xx | |
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/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-cards.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c index b63719fddee4..f209fe14f829 100644 --- a/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/drivers/media/video/cx231xx/cx231xx-cards.c | |||
@@ -311,8 +311,8 @@ void cx231xx_card_setup(struct cx231xx *dev) | |||
311 | 311 | ||
312 | /* request some modules */ | 312 | /* request some modules */ |
313 | if (dev->board.decoder == CX231XX_AVDECODER) { | 313 | if (dev->board.decoder == CX231XX_AVDECODER) { |
314 | dev->sd_cx25840 = | 314 | dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, |
315 | v4l2_i2c_new_subdev(&dev->i2c_bus[0].i2c_adap, | 315 | &dev->i2c_bus[0].i2c_adap, |
316 | "cx25840", "cx25840", 0x88 >> 1); | 316 | "cx25840", "cx25840", 0x88 >> 1); |
317 | if (dev->sd_cx25840 == NULL) | 317 | if (dev->sd_cx25840 == NULL) |
318 | cx231xx_info("cx25840 subdev registration failure\n"); | 318 | cx231xx_info("cx25840 subdev registration failure\n"); |
@@ -321,8 +321,8 @@ void cx231xx_card_setup(struct cx231xx *dev) | |||
321 | } | 321 | } |
322 | 322 | ||
323 | if (dev->board.tuner_type != TUNER_ABSENT) { | 323 | if (dev->board.tuner_type != TUNER_ABSENT) { |
324 | dev->sd_tuner = | 324 | dev->sd_tuner = v4l2_i2c_new_subdev(&dev->v4l2_dev, |
325 | v4l2_i2c_new_subdev(&dev->i2c_bus[1].i2c_adap, | 325 | &dev->i2c_bus[1].i2c_adap, |
326 | "tuner", "tuner", 0xc2 >> 1); | 326 | "tuner", "tuner", 0xc2 >> 1); |
327 | if (dev->sd_tuner == NULL) | 327 | if (dev->sd_tuner == NULL) |
328 | cx231xx_info("tuner subdev registration failure\n"); | 328 | cx231xx_info("tuner subdev registration failure\n"); |