summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/mantis/mantis_vp2033.c
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-02 22:11:00 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 11:55:29 -0200
commitda7365f46607207c8166167ba497e3cb3e02270d (patch)
treec56ad281f9afc0977fea8d0e11d06c2593450a61 /drivers/media/dvb/mantis/mantis_vp2033.c
parent55172773c57221c7c81e445d04f811f2f0478c3e (diff)
downloadlwn-da7365f46607207c8166167ba497e3cb3e02270d.tar.gz
lwn-da7365f46607207c8166167ba497e3cb3e02270d.zip
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/media/dvb/mantis/mantis_vp2033.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_vp2033.c14
1 files changed, 1 insertions, 13 deletions
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 @@
#include "mantis_common.h"
#include "mantis_vp2033.h"
-struct tda10021_state {
- struct i2c_adapter *i2c;
- struct dvb_frontend_ops ops;
- /* configuration settings */
- const struct tda10021_config *config;
- struct dvb_frontend frontend;
-
- u8 pwm;
- u8 reg0;
-};
-
#define MANTIS_MODEL_NAME "VP-2033"
#define MANTIS_DEV_TYPE "DVB-C"
@@ -49,7 +38,6 @@ struct cu1216_config philips_cu1216_config = {
int philips_cu1216_tuner_set(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
{
-// struct tda10021_state *state = fe->demodulator_priv;
struct mantis_pci *mantis = fe->dvb->priv;
u8 buf[4];
@@ -71,11 +59,11 @@ int philips_cu1216_tuner_set(struct dvb_frontend *fe,
buf[3] = (params->frequency < 150000000 ? 0xA1 :
params->frequency < 445000000 ? 0x92 : 0x34);
-// if (i2c_transfer(state->i2c, &msg, 1) < 0) {
if (i2c_transfer(&mantis->adapter, &msg, 1) < 0) {
printk("%s tuner not ack!\n", __FUNCTION__);
return -EIO;
}
msleep(100);
+
return 0;
}