Skip to content

Commit

Permalink
V4L/DVB (6844): tuner: remove struct tuner from tuner-driver.h
Browse files Browse the repository at this point in the history
struct tuner holds state for tuner-core, only -- move it into tuner-core.c

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 790ba18 commit f7f427e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
21 changes: 21 additions & 0 deletions drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,27 @@

#define PREFIX t->i2c->driver->driver.name

struct tuner {
/* device */
struct dvb_frontend fe;
struct i2c_client *i2c;
struct list_head list;
unsigned int using_v4l2:1;

/* keep track of the current settings */
v4l2_std_id std;
unsigned int tv_freq;
unsigned int radio_freq;
unsigned int audmode;

unsigned int mode;
unsigned int mode_mask; /* Combination of allowable modes */

unsigned int type; /* chip type id */
unsigned int config;
int (*tuner_callback) (void *dev, int command, int arg);
};

/* standard i2c insmod options */
static unsigned short normal_i2c[] = {
#if defined(CONFIG_TUNER_TEA5761) || (defined(CONFIG_TUNER_TEA5761_MODULE) && defined(MODULE))
Expand Down
23 changes: 0 additions & 23 deletions drivers/media/video/tuner-driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,4 @@ struct analog_tuner_ops {
int (*set_config)(struct dvb_frontend *fe, void *priv_cfg);
};

struct tuner {
/* device */
struct i2c_client *i2c;
struct list_head list; /* list of tuners */

unsigned int type; /* chip type */

unsigned int mode;
unsigned int mode_mask; /* Combination of allowable modes */

unsigned int tv_freq; /* keep track of the current settings */
unsigned int radio_freq;
unsigned int audmode;
v4l2_std_id std;

int using_v4l2;

struct dvb_frontend fe;

unsigned int config;
int (*tuner_callback) (void *dev, int command,int arg);
};

#endif /* __TUNER_DRIVER_H__ */

0 comments on commit f7f427e

Please sign in to comment.