aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-02 20:11:00 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 08:55:29 -0500
commitda7365f46607207c8166167ba497e3cb3e02270d (patch)
treec56ad281f9afc0977fea8d0e11d06c2593450a61 /drivers
parent55172773c57221c7c81e445d04f811f2f0478c3e (diff)
V4L/DVB (13708): [Mantis] Remove some dead code
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/mantis/mantis_core.c2
-rw-r--r--drivers/media/dvb/mantis/mantis_pci.c1
-rw-r--r--drivers/media/dvb/mantis/mantis_vp2033.c14
3 files changed, 1 insertions, 16 deletions
diff --git a/drivers/media/dvb/mantis/mantis_core.c b/drivers/media/dvb/mantis/mantis_core.c
index 1012959499a2..d159ad6fc321 100644
--- a/drivers/media/dvb/mantis/mantis_core.c
+++ b/drivers/media/dvb/mantis/mantis_core.c
@@ -48,7 +48,6 @@ static int read_eeprom_byte(struct mantis_pci *mantis, u8 *data, u8 length)
48 48
49 return err; 49 return err;
50 } 50 }
51// msleep_interruptible(2);
52 51
53 return 0; 52 return 0;
54} 53}
@@ -75,7 +74,6 @@ static int write_eeprom_byte(struct mantis_pci *mantis, u8 *data, u8 length)
75 return 0; 74 return 0;
76} 75}
77 76
78
79static int get_mac_address(struct mantis_pci *mantis) 77static int get_mac_address(struct mantis_pci *mantis)
80{ 78{
81 int err; 79 int err;
diff --git a/drivers/media/dvb/mantis/mantis_pci.c b/drivers/media/dvb/mantis/mantis_pci.c
index 0bc25d2778f5..402f866e12d9 100644
--- a/drivers/media/dvb/mantis/mantis_pci.c
+++ b/drivers/media/dvb/mantis/mantis_pci.c
@@ -74,7 +74,6 @@ static irqreturn_t mantis_pci_irq(int irq, void *dev_id)
74 } 74 }
75 if (stat & MANTIS_INT_I2CRACK) { 75 if (stat & MANTIS_INT_I2CRACK) {
76 dprintk(verbose, MANTIS_DEBUG, 0, "* I2C R-ACK *"); 76 dprintk(verbose, MANTIS_DEBUG, 0, "* I2C R-ACK *");
77// wake_up(&mantis->i2c_wq);
78 } 77 }
79 if (stat & MANTIS_INT_PCMCIA7) { 78 if (stat & MANTIS_INT_PCMCIA7) {
80 dprintk(verbose, MANTIS_DEBUG, 0, "* PCMCIA-07 *"); 79 dprintk(verbose, MANTIS_DEBUG, 0, "* PCMCIA-07 *");
diff --git a/drivers/media/dvb/mantis/mantis_vp2033.c b/drivers/media/dvb/mantis/mantis_vp2033.c
index e98959769120..853b558b928e 100644
--- a/drivers/media/dvb/mantis/mantis_vp2033.c
+++ b/drivers/media/dvb/mantis/mantis_vp2033.c
@@ -21,17 +21,6 @@
21#include "mantis_common.h" 21#include "mantis_common.h"
22#include "mantis_vp2033.h" 22#include "mantis_vp2033.h"
23 23
24struct tda10021_state {
25 struct i2c_adapter *i2c;
26 struct dvb_frontend_ops ops;
27 /* configuration settings */
28 const struct tda10021_config *config;
29 struct dvb_frontend frontend;
30
31 u8 pwm;
32 u8 reg0;
33};
34
35#define MANTIS_MODEL_NAME "VP-2033" 24#define MANTIS_MODEL_NAME "VP-2033"
36#define MANTIS_DEV_TYPE "DVB-C" 25#define MANTIS_DEV_TYPE "DVB-C"
37 26
@@ -49,7 +38,6 @@ struct cu1216_config philips_cu1216_config = {
49int philips_cu1216_tuner_set(struct dvb_frontend *fe, 38int philips_cu1216_tuner_set(struct dvb_frontend *fe,
50 struct dvb_frontend_parameters *params) 39 struct dvb_frontend_parameters *params)
51{ 40{
52// struct tda10021_state *state = fe->demodulator_priv;
53 struct mantis_pci *mantis = fe->dvb->priv; 41 struct mantis_pci *mantis = fe->dvb->priv;
54 42
55 u8 buf[4]; 43 u8 buf[4];
@@ -71,11 +59,11 @@ int philips_cu1216_tuner_set(struct dvb_frontend *fe,
71 buf[3] = (params->frequency < 150000000 ? 0xA1 : 59 buf[3] = (params->frequency < 150000000 ? 0xA1 :
72 params->frequency < 445000000 ? 0x92 : 0x34); 60 params->frequency < 445000000 ? 0x92 : 0x34);
73 61
74// if (i2c_transfer(state->i2c, &msg, 1) < 0) {
75 if (i2c_transfer(&mantis->adapter, &msg, 1) < 0) { 62 if (i2c_transfer(&mantis->adapter, &msg, 1) < 0) {
76 printk("%s tuner not ack!\n", __FUNCTION__); 63 printk("%s tuner not ack!\n", __FUNCTION__);
77 return -EIO; 64 return -EIO;
78 } 65 }
79 msleep(100); 66 msleep(100);
67
80 return 0; 68 return 0;
81} 69}