aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda18271-priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/tda18271-priv.h')
-rw-r--r--drivers/media/dvb/frontends/tda18271-priv.h22
1 files changed, 22 insertions, 0 deletions
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 {\