diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-08-10 01:49:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:19:24 -0400 |
commit | 53dacb15705901e14b03dcba27e40364fedd9d09 (patch) | |
tree | ca3b4111465aca9d58024ace0f0072ee7952c11e /drivers/media/video/cx23885 | |
parent | 0da2808ca27ab7f65346d4d191569c669db8f628 (diff) |
V4L/DVB (12540): v4l: simplify v4l2_i2c_new_subdev and friends
Rewrite v4l2_i2c_new_subdev as a simplified version of v4l2_i2c_new_subdev_cfg
and remove v4l2_i2c_new_probed_subdev and v4l2_i2c_new_probed_subdev_addr.
This simplifies this API substantially.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-cards.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c index 3143d85ef31d..02ba4aec7d92 100644 --- a/drivers/media/video/cx23885/cx23885-cards.c +++ b/drivers/media/video/cx23885/cx23885-cards.c | |||
@@ -929,7 +929,7 @@ void cx23885_card_setup(struct cx23885_dev *dev) | |||
929 | case CX23885_BOARD_NETUP_DUAL_DVBS2_CI: | 929 | case CX23885_BOARD_NETUP_DUAL_DVBS2_CI: |
930 | dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, | 930 | dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, |
931 | &dev->i2c_bus[2].i2c_adap, | 931 | &dev->i2c_bus[2].i2c_adap, |
932 | "cx25840", "cx25840", 0x88 >> 1); | 932 | "cx25840", "cx25840", 0x88 >> 1, NULL); |
933 | v4l2_subdev_call(dev->sd_cx25840, core, load_fw); | 933 | v4l2_subdev_call(dev->sd_cx25840, core, load_fw); |
934 | break; | 934 | break; |
935 | } | 935 | } |
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index 5d6093336300..654cc253cd50 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -1521,11 +1521,11 @@ int cx23885_video_register(struct cx23885_dev *dev) | |||
1521 | if (dev->tuner_addr) | 1521 | if (dev->tuner_addr) |
1522 | sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, | 1522 | sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, |
1523 | &dev->i2c_bus[1].i2c_adap, | 1523 | &dev->i2c_bus[1].i2c_adap, |
1524 | "tuner", "tuner", dev->tuner_addr); | 1524 | "tuner", "tuner", dev->tuner_addr, NULL); |
1525 | else | 1525 | else |
1526 | sd = v4l2_i2c_new_probed_subdev(&dev->v4l2_dev, | 1526 | sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, |
1527 | &dev->i2c_bus[1].i2c_adap, | 1527 | &dev->i2c_bus[1].i2c_adap, |
1528 | "tuner", "tuner", v4l2_i2c_tuner_addrs(ADDRS_TV)); | 1528 | "tuner", "tuner", 0, v4l2_i2c_tuner_addrs(ADDRS_TV)); |
1529 | if (sd) { | 1529 | if (sd) { |
1530 | struct tuner_setup tun_setup; | 1530 | struct tuner_setup tun_setup; |
1531 | 1531 | ||