summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-24 12:38:41 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-12-24 12:38:41 -0500
commitf91bac4e6590084de78e1a7a25ff5acb13f6fee6 (patch)
treec157d2c5dd6e52a602556f190cf569d6f18ed95b /linux/drivers/media
parent30a36bd59d3603ee2b7e81364485e4df878a40fc (diff)
downloadmediapointer-dvb-s2-f91bac4e6590084de78e1a7a25ff5acb13f6fee6.tar.gz
mediapointer-dvb-s2-f91bac4e6590084de78e1a7a25ff5acb13f6fee6.tar.bz2
tda18271: move state structures to tda18271-priv.h
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271-fe.c19
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271-priv.h22
2 files changed, 22 insertions, 19 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c
index 95337da35..f176fdfc9 100644
--- a/linux/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c
@@ -21,8 +21,6 @@
#include <linux/delay.h>
#include "compat.h"
#include <linux/videodev2.h>
-
-#include "tda18271.h"
#include "tda18271-priv.h"
int tda18271_debug;
@@ -31,23 +29,6 @@ MODULE_PARM_DESC(debug, "set debug level (info=1, map=2, reg=4 (or-able))");
/*---------------------------------------------------------------------*/
-enum tda18271_mode {
- TDA18271_ANALOG,
- TDA18271_DIGITAL,
-};
-
-struct tda18271_priv {
- u8 i2c_addr;
- struct i2c_adapter *i2c_adap;
- unsigned char tda18271_regs[TDA18271_NUM_REGS];
-
- enum tda18271_mode mode;
- enum tda18271_i2c_gate gate;
-
- u32 frequency;
- u32 bandwidth;
-};
-
static int tda18271_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
{
struct tda18271_priv *priv = fe->tuner_priv;
diff --git a/linux/drivers/media/dvb/frontends/tda18271-priv.h b/linux/drivers/media/dvb/frontends/tda18271-priv.h
index e1fa9a467..7b9aa9ad5 100644
--- a/linux/drivers/media/dvb/frontends/tda18271-priv.h
+++ b/linux/drivers/media/dvb/frontends/tda18271-priv.h
@@ -23,6 +23,7 @@
#include <linux/kernel.h>
#include <linux/types.h>
+#include "tda18271.h"
#define R_ID 0x00 /* ID byte */
#define R_TM 0x01 /* Thermo byte */
@@ -66,6 +67,27 @@
#define TDA18271_NUM_REGS 39
+/*---------------------------------------------------------------------*/
+
+enum tda18271_mode {
+ TDA18271_ANALOG,
+ TDA18271_DIGITAL,
+};
+
+struct tda18271_priv {
+ u8 i2c_addr;
+ struct i2c_adapter *i2c_adap;
+ unsigned char tda18271_regs[TDA18271_NUM_REGS];
+
+ enum tda18271_mode mode;
+ enum tda18271_i2c_gate gate;
+
+ u32 frequency;
+ u32 bandwidth;
+};
+
+/*---------------------------------------------------------------------*/
+
extern int tda18271_debug;
#define dprintk(level, fmt, arg...) do {\