diff options
author | Andrew de Quincy <devnull@localhost> | 2004-11-09 17:14:53 +0000 |
---|---|---|
committer | Andrew de Quincy <devnull@localhost> | 2004-11-09 17:14:53 +0000 |
commit | 52cfc603cc97595efe3af9374a84e34952ab8c15 (patch) | |
tree | 30f8b86bbc6f8f9c60710f6d1a3f86bf180f2759 /linux/drivers/media | |
parent | 8fefc4d0918a1a9a7af142725963dc3c93cdab2a (diff) | |
download | mediapointer-dvb-s2-52cfc603cc97595efe3af9374a84e34952ab8c15.tar.gz mediapointer-dvb-s2-52cfc603cc97595efe3af9374a84e34952ab8c15.tar.bz2 |
Cleaned device attach
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index c2ff00fc7..583f59a81 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -1858,26 +1858,10 @@ static void frontend_init(struct av7110 *av7110) break; case 0x000A: { // Hauppauge/TT Nexus-CA rev1.X - u8 b = 0x00; - u8 revbuf[4]; - int revision; - struct i2c_msg msg[] = { { .addr = 0x50,.flags = 0,.buf = &b,.len = 1 }, - { .addr = 0x50,.flags = I2C_M_RD,.buf = revbuf,.len = sizeof(revbuf)} }; - - // retrieve board revision - if (i2c_transfer(&av7110->i2c_adap, msg, 2) != 2) - break; - printk("revbuf[0] = 0x%x\n", revbuf[0]); - printk("revbuf[1] = 0x%x\n", revbuf[1]); - printk("revbuf[2] = 0x%x\n", revbuf[2]); - printk("revbuf[3] = 0x%x\n", revbuf[3]); - revision = revbuf[0] | (revbuf[1] << 8); - av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap, (revision < 10) ? 0x64 : 0x7b); + av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap, 0x7b); if (av7110->fe) break; - break; - } } } |