summaryrefslogtreecommitdiff
path: root/drivers/media/common/tuners
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-20 20:58:25 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-04 22:16:22 -0200
commitb675668aaf33eeb0e8cbf4e9ce75f99cbf695977 (patch)
tree20e2819a6314a2b57ba1c1d05c83a828d29f474c /drivers/media/common/tuners
parent0ff4843218d15ccb76f0e17ea5203673d00cd50b (diff)
downloadlinux-3.10-b675668aaf33eeb0e8cbf4e9ce75f99cbf695977.tar.gz
linux-3.10-b675668aaf33eeb0e8cbf4e9ce75f99cbf695977.tar.bz2
linux-3.10-b675668aaf33eeb0e8cbf4e9ce75f99cbf695977.zip
[media] mt2063: Fix the driver to make it compile
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners')
-rw-r--r--drivers/media/common/tuners/mt2063.c1
-rw-r--r--drivers/media/common/tuners/mt2063.h25
2 files changed, 17 insertions, 9 deletions
diff --git a/drivers/media/common/tuners/mt2063.c b/drivers/media/common/tuners/mt2063.c
index 1d36e51c404..cd3b206adf1 100644
--- a/drivers/media/common/tuners/mt2063.c
+++ b/drivers/media/common/tuners/mt2063.c
@@ -4,7 +4,6 @@
#include <linux/module.h>
#include <linux/string.h>
-#include "drxk_type.h"
#include "mt2063.h"
/* Version of this module */
diff --git a/drivers/media/common/tuners/mt2063.h b/drivers/media/common/tuners/mt2063.h
index 8fa4411d30d..80af9afc69b 100644
--- a/drivers/media/common/tuners/mt2063.h
+++ b/drivers/media/common/tuners/mt2063.h
@@ -1,9 +1,19 @@
#ifndef __MT2063_H__
#define __MT2063_H__
-#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"
+enum Bool_t {
+ FALSE = 0,
+ TRUE
+};
+
+typedef unsigned long u32_t;
+
+#define DVBFE_TUNER_OPEN 99
+#define DVBFE_TUNER_SOFTWARE_SHUTDOWN 100
+#define DVBFE_TUNER_CLEAR_POWER_MASKBITS 101
+
#define MT2063_ERROR (1 << 31)
#define MT2063_USER_ERROR (1 << 30)
@@ -618,17 +628,16 @@ struct mt2063_state {
u32 reference;
};
-#if defined(CONFIG_DVB_MT2063) || (defined(CONFIG_DVB_MT2063_MODULE) && defined(MODULE))
-
-extern struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
- struct mt2063_config *config,
- struct i2c_adapter *i2c);
+#if defined(CONFIG_MEDIA_TUNER_MT2063) || (defined(CONFIG_MEDIA_TUNER_MT2063_MODULE) && defined(MODULE))
+struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
+ struct mt2063_config *config,
+ struct i2c_adapter *i2c);
#else
static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
- struct mt2063_config *config,
- struct i2c_adapter *i2c)
+ struct mt2063_config *config,
+ struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
return NULL;