aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-30 10:47:55 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-06 20:44:25 -0400
commit1792f68b0eb464a9bc84e7d182e2ab4d00541c8c (patch)
tree623d7e56231ef8dedc685e6b0511c63162313f7a /drivers/media/video/bt8xx
parente6574f2fbecdb8af807169d345c10131ae060a88 (diff)
V4L/DVB (11375): v4l2: use v4l2_i2c_new_probed_subdev_addr where appropriate.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bt8xx')
-rw-r--r--drivers/media/video/bt8xx/bttv-cards.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c
index ced777084ca0..58fb93ee5500 100644
--- a/drivers/media/video/bt8xx/bttv-cards.c
+++ b/drivers/media/video/bt8xx/bttv-cards.c
@@ -3640,21 +3640,13 @@ void __devinit bttv_init_card2(struct bttv *btv)
3640 it really is a msp3400, so it will return NULL when the device 3640 it really is a msp3400, so it will return NULL when the device
3641 found is really something else (e.g. a tea6300). */ 3641 found is really something else (e.g. a tea6300). */
3642 if (!bttv_tvcards[btv->c.type].no_msp34xx) { 3642 if (!bttv_tvcards[btv->c.type].no_msp34xx) {
3643 static const unsigned short addrs[] = { 3643 btv->sd_msp34xx = v4l2_i2c_new_probed_subdev_addr(&btv->c.v4l2_dev,
3644 I2C_ADDR_MSP3400 >> 1, 3644 &btv->c.i2c_adap, "msp3400", "msp3400",
3645 I2C_CLIENT_END 3645 I2C_ADDR_MSP3400 >> 1);
3646 };
3647
3648 btv->sd_msp34xx = v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev,
3649 &btv->c.i2c_adap, "msp3400", "msp3400", addrs);
3650 } else if (bttv_tvcards[btv->c.type].msp34xx_alt) { 3646 } else if (bttv_tvcards[btv->c.type].msp34xx_alt) {
3651 static const unsigned short addrs[] = { 3647 btv->sd_msp34xx = v4l2_i2c_new_probed_subdev_addr(&btv->c.v4l2_dev,
3652 I2C_ADDR_MSP3400_ALT >> 1, 3648 &btv->c.i2c_adap, "msp3400", "msp3400",
3653 I2C_CLIENT_END 3649 I2C_ADDR_MSP3400_ALT >> 1);
3654 };
3655
3656 btv->sd_msp34xx = v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev,
3657 &btv->c.i2c_adap, "msp3400", "msp3400", addrs);
3658 } 3650 }
3659 3651
3660 /* If we found a msp34xx, then we're done. */ 3652 /* If we found a msp34xx, then we're done. */