Commit d3714210 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (6925): tda18271: move state structures to tda18271-priv.h

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 7686b574
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include "tda18271.h"
#include "tda18271-priv.h" #include "tda18271-priv.h"
int tda18271_debug; int tda18271_debug;
...@@ -30,23 +28,6 @@ MODULE_PARM_DESC(debug, "set debug level (info=1, map=2, reg=4 (or-able))"); ...@@ -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) static int tda18271_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
{ {
struct tda18271_priv *priv = fe->tuner_priv; struct tda18271_priv *priv = fe->tuner_priv;
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/types.h> #include <linux/types.h>
#include "tda18271.h"
#define R_ID 0x00 /* ID byte */ #define R_ID 0x00 /* ID byte */
#define R_TM 0x01 /* Thermo byte */ #define R_TM 0x01 /* Thermo byte */
...@@ -66,6 +67,27 @@ ...@@ -66,6 +67,27 @@
#define TDA18271_NUM_REGS 39 #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; extern int tda18271_debug;
#define dprintk(level, fmt, arg...) do {\ #define dprintk(level, fmt, arg...) do {\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment