summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-16 20:02:26 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-12-16 20:02:26 -0500
commit792fe12a080524a1a417780cc115efe7384a3223 (patch)
treebccc9712e3438aefafd3501bc1a73b8dece27dd7 /linux/drivers/media/video
parentf2cffffe592e4b1dc2cfbf0f4be509edea199d5a (diff)
downloadmediapointer-dvb-s2-792fe12a080524a1a417780cc115efe7384a3223.tar.gz
mediapointer-dvb-s2-792fe12a080524a1a417780cc115efe7384a3223.tar.bz2
tuner: remove struct tuner from tuner-driver.h
From: Michael Krufky <mkrufky@linuxtv.org> struct tuner holds state for tuner-core, only -- move it into tuner-core.c Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/tuner-core.c21
-rw-r--r--linux/drivers/media/video/tuner-driver.h23
2 files changed, 21 insertions, 23 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 45b955c3c..73976746b 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -41,6 +41,27 @@
#define PREFIX t->i2c->driver->driver.name
#endif
+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))
diff --git a/linux/drivers/media/video/tuner-driver.h b/linux/drivers/media/video/tuner-driver.h
index 417753b7c..7b1adfaf7 100644
--- a/linux/drivers/media/video/tuner-driver.h
+++ b/linux/drivers/media/video/tuner-driver.h
@@ -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__ */