diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-24 12:38:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:04:25 -0500 |
commit | d37142102a2adaa3391a384ea6a780afb5804789 (patch) | |
tree | b3921bb290379e18a939dcbdbd51f84895abe703 /drivers/media/dvb | |
parent | 7686b574a1507ecf5fd7c419b43f26222668aa4d (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.c | 19 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/tda18271-priv.h | 22 |
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 | ||
27 | int tda18271_debug; | 25 | int 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 | ||
33 | enum tda18271_mode { | ||
34 | TDA18271_ANALOG, | ||
35 | TDA18271_DIGITAL, | ||
36 | }; | ||
37 | |||
38 | struct 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 | |||
50 | static int tda18271_i2c_gate_ctrl(struct dvb_frontend *fe, int enable) | 31 | static 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 | |||
72 | enum tda18271_mode { | ||
73 | TDA18271_ANALOG, | ||
74 | TDA18271_DIGITAL, | ||
75 | }; | ||
76 | |||
77 | struct 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 | |||
69 | extern int tda18271_debug; | 91 | extern int tda18271_debug; |
70 | 92 | ||
71 | #define dprintk(level, fmt, arg...) do {\ | 93 | #define dprintk(level, fmt, arg...) do {\ |