V4L/DVB (6925): tda18271: move state structures to tda18271-priv.h
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 24 Dec 2007 17:38:41 +0000 (14:38 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:25 +0000 (19:04 -0200)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/tda18271-fe.c
drivers/media/dvb/frontends/tda18271-priv.h

index da22b24190cf252ec17980dd53e3c1c9840fdfff..4526def2d42f4af2b0f891a0c46321618b96ba70 100644 (file)
@@ -20,8 +20,6 @@
 
 #include <linux/delay.h>
 #include <linux/videodev2.h>
-
-#include "tda18271.h"
 #include "tda18271-priv.h"
 
 int tda18271_debug;
@@ -30,23 +28,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;
index e1fa9a467939de0fc892e128771020658ccd8e6a..7b9aa9ad53fe3703edb78e60597d59974dc47856 100644 (file)
@@ -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            */
 
 #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 {\
This page took 0.02885 seconds and 5 git commands to generate.