diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-16 20:02:26 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:56 -0500 |
commit | f7f427e4cc6078e23078dcd7f321676e0b0f544c (patch) | |
tree | 61c68f36d39527be687d83d5e945e56465c1eec6 /drivers | |
parent | 790ba18ec7a5f15c854f52835b0e6f39de2369dd (diff) |
V4L/DVB (6844): tuner: remove struct tuner from tuner-driver.h
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/tuner-core.c | 21 | ||||
-rw-r--r-- | drivers/media/video/tuner-driver.h | 23 |
2 files changed, 21 insertions, 23 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index d51f3afa969d..f22c41bb97ef 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -33,6 +33,27 @@ | |||
33 | 33 | ||
34 | #define PREFIX t->i2c->driver->driver.name | 34 | #define PREFIX t->i2c->driver->driver.name |
35 | 35 | ||
36 | struct tuner { | ||
37 | /* device */ | ||
38 | struct dvb_frontend fe; | ||
39 | struct i2c_client *i2c; | ||
40 | struct list_head list; | ||
41 | unsigned int using_v4l2:1; | ||
42 | |||
43 | /* keep track of the current settings */ | ||
44 | v4l2_std_id std; | ||
45 | unsigned int tv_freq; | ||
46 | unsigned int radio_freq; | ||
47 | unsigned int audmode; | ||
48 | |||
49 | unsigned int mode; | ||
50 | unsigned int mode_mask; /* Combination of allowable modes */ | ||
51 | |||
52 | unsigned int type; /* chip type id */ | ||
53 | unsigned int config; | ||
54 | int (*tuner_callback) (void *dev, int command, int arg); | ||
55 | }; | ||
56 | |||
36 | /* standard i2c insmod options */ | 57 | /* standard i2c insmod options */ |
37 | static unsigned short normal_i2c[] = { | 58 | static unsigned short normal_i2c[] = { |
38 | #if defined(CONFIG_TUNER_TEA5761) || (defined(CONFIG_TUNER_TEA5761_MODULE) && defined(MODULE)) | 59 | #if defined(CONFIG_TUNER_TEA5761) || (defined(CONFIG_TUNER_TEA5761_MODULE) && defined(MODULE)) |
diff --git a/drivers/media/video/tuner-driver.h b/drivers/media/video/tuner-driver.h index 417753b7c3fa..7b1adfaf7aca 100644 --- a/drivers/media/video/tuner-driver.h +++ b/drivers/media/video/tuner-driver.h | |||
@@ -50,27 +50,4 @@ struct analog_tuner_ops { | |||
50 | int (*set_config)(struct dvb_frontend *fe, void *priv_cfg); | 50 | int (*set_config)(struct dvb_frontend *fe, void *priv_cfg); |
51 | }; | 51 | }; |
52 | 52 | ||
53 | struct tuner { | ||
54 | /* device */ | ||
55 | struct i2c_client *i2c; | ||
56 | struct list_head list; /* list of tuners */ | ||
57 | |||
58 | unsigned int type; /* chip type */ | ||
59 | |||
60 | unsigned int mode; | ||
61 | unsigned int mode_mask; /* Combination of allowable modes */ | ||
62 | |||
63 | unsigned int tv_freq; /* keep track of the current settings */ | ||
64 | unsigned int radio_freq; | ||
65 | unsigned int audmode; | ||
66 | v4l2_std_id std; | ||
67 | |||
68 | int using_v4l2; | ||
69 | |||
70 | struct dvb_frontend fe; | ||
71 | |||
72 | unsigned int config; | ||
73 | int (*tuner_callback) (void *dev, int command,int arg); | ||
74 | }; | ||
75 | |||
76 | #endif /* __TUNER_DRIVER_H__ */ | 53 | #endif /* __TUNER_DRIVER_H__ */ |