Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76670
b: refs/heads/master
c: d371421
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 5cc220b commit 84354bf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7686b574a1507ecf5fd7c419b43f26222668aa4d
refs/heads/master: d37142102a2adaa3391a384ea6a780afb5804789
19 changes: 0 additions & 19 deletions trunk/drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include <linux/delay.h>
#include <linux/videodev2.h>

#include "tda18271.h"
#include "tda18271-priv.h"

int tda18271_debug;
Expand All @@ -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;
Expand Down
22 changes: 22 additions & 0 deletions trunk/drivers/media/dvb/frontends/tda18271-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -66,6 +67,27 @@

#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 {\
Expand Down

0 comments on commit 84354bf

Please sign in to comment.