aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-24 12:38:41 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:04:25 -0500
commitd37142102a2adaa3391a384ea6a780afb5804789 (patch)
treeb3921bb290379e18a939dcbdbd51f84895abe703 /drivers/media/dvb
parent7686b574a1507ecf5fd7c419b43f26222668aa4d (diff)
V4L/DVB (6925): tda18271: move state structures to tda18271-priv.h
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/tda18271-fe.c19
-rw-r--r--drivers/media/dvb/frontends/tda18271-priv.h22
2 files changed, 22 insertions, 19 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-fe.c b/drivers/media/dvb/frontends/tda18271-fe.c
index da22b24190cf..4526def2d42f 100644
--- a/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/drivers/media/dvb/frontends/tda18271-fe.c
@@ -20,8 +20,6 @@
20 20
21#include <linux/delay.h> 21#include <linux/delay.h>
22#include <linux/videodev2.h> 22#include <linux/videodev2.h>
23
24#include "tda18271.h"
25#include "tda18271-priv.h" 23#include "tda18271-priv.h"
26 24
27int tda18271_debug; 25int tda18271_debug;
@@ -30,23 +28,6 @@ MODULE_PARM_DESC(debug, "set debug level (info=1, map=2, reg=4 (or-able))");
30 28
31/*---------------------------------------------------------------------*/ 29/*---------------------------------------------------------------------*/
32 30
33enum tda18271_mode {
34 TDA18271_ANALOG,
35 TDA18271_DIGITAL,
36};
37
38struct tda18271_priv {
39 u8 i2c_addr;
40 struct i2c_adapter *i2c_adap;
41 unsigned char tda18271_regs[TDA18271_NUM_REGS];
42
43 enum tda18271_mode mode;
44 enum tda18271_i2c_gate gate;
45
46 u32 frequency;
47 u32 bandwidth;
48};
49
50static int tda18271_i2c_gate_ctrl(struct dvb_frontend *fe, int enable) 31static int tda18271_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
51{ 32{
52 struct tda18271_priv *priv = fe->tuner_priv; 33 struct tda18271_priv *priv = fe->tuner_priv;
diff --git a/drivers/media/dvb/frontends/tda18271-priv.h b/drivers/media/dvb/frontends/tda18271-priv.h
index e1fa9a467939..7b9aa9ad53fe 100644
--- a/drivers/media/dvb/frontends/tda18271-priv.h
+++ b/drivers/media/dvb/frontends/tda18271-priv.h
@@ -23,6 +23,7 @@
23 23
24#include <linux/kernel.h> 24#include <linux/kernel.h>
25#include <linux/types.h> 25#include <linux/types.h>
26#include "tda18271.h"
26 27
27#define R_ID 0x00 /* ID byte */ 28#define R_ID 0x00 /* ID byte */
28#define R_TM 0x01 /* Thermo byte */ 29#define R_TM 0x01 /* Thermo byte */
@@ -66,6 +67,27 @@
66 67
67#define TDA18271_NUM_REGS 39 68#define TDA18271_NUM_REGS 39
68 69
70/*---------------------------------------------------------------------*/
71
72enum tda18271_mode {
73 TDA18271_ANALOG,
74 TDA18271_DIGITAL,
75};
76
77struct tda18271_priv {
78 u8 i2c_addr;
79 struct i2c_adapter *i2c_adap;
80 unsigned char tda18271_regs[TDA18271_NUM_REGS];
81
82 enum tda18271_mode mode;
83 enum tda18271_i2c_gate gate;
84
85 u32 frequency;
86 u32 bandwidth;
87};
88
89/*---------------------------------------------------------------------*/
90
69extern int tda18271_debug; 91extern int tda18271_debug;
70 92
71#define dprintk(level, fmt, arg...) do {\ 93#define dprintk(level, fmt, arg...) do {\