aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-21 00:55:43 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:04:10 -0500
commit807ffe8df23e1977d4e702697a08047f346eb974 (patch)
treefe7cb050ddddc64fc98b0248030cf1d6a8abc8d4
parentb624aa86cd92b32d66653609e4896f54c0d6111d (diff)
V4L/DVB (6879): move struct analog_tuner_ops into dvb_frontend.h
struct analog_tuner_ops no longer has any dependencies specific to v4l2, so we can move this into dvb_frontend.h with the rest of the tuning structures. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.h24
-rw-r--r--drivers/media/video/tuner-driver.h22
2 files changed, 22 insertions, 24 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h
index 50dc5568efaa..417802f83f7e 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.h
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.h
@@ -62,8 +62,6 @@ struct dvb_tuner_info {
62 u32 bandwidth_step; 62 u32 bandwidth_step;
63}; 63};
64 64
65struct analog_tuner_ops;
66
67struct analog_parameters { 65struct analog_parameters {
68 unsigned int frequency; 66 unsigned int frequency;
69 unsigned int mode; 67 unsigned int mode;
@@ -103,6 +101,28 @@ struct dvb_tuner_ops {
103 int (*set_bandwidth)(struct dvb_frontend *fe, u32 bandwidth); 101 int (*set_bandwidth)(struct dvb_frontend *fe, u32 bandwidth);
104}; 102};
105 103
104struct analog_demod_info {
105 char *name;
106};
107
108struct analog_tuner_ops {
109
110 struct analog_demod_info info;
111
112 void (*set_params)(struct dvb_frontend *fe,
113 struct analog_parameters *params);
114 int (*has_signal)(struct dvb_frontend *fe);
115 int (*is_stereo)(struct dvb_frontend *fe);
116 int (*get_afc)(struct dvb_frontend *fe);
117 void (*tuner_status)(struct dvb_frontend *fe);
118 void (*standby)(struct dvb_frontend *fe);
119 void (*release)(struct dvb_frontend *fe);
120 int (*i2c_gate_ctrl)(struct dvb_frontend *fe, int enable);
121
122 /** This is to allow setting tuner-specific configuration */
123 int (*set_config)(struct dvb_frontend *fe, void *priv_cfg);
124};
125
106struct dvb_frontend_ops { 126struct dvb_frontend_ops {
107 127
108 struct dvb_frontend_info info; 128 struct dvb_frontend_info info;
diff --git a/drivers/media/video/tuner-driver.h b/drivers/media/video/tuner-driver.h
index 999ad7715a01..79efecc93340 100644
--- a/drivers/media/video/tuner-driver.h
+++ b/drivers/media/video/tuner-driver.h
@@ -24,26 +24,4 @@
24 24
25#include "dvb_frontend.h" 25#include "dvb_frontend.h"
26 26
27struct analog_demod_info {
28 char *name;
29};
30
31struct analog_tuner_ops {
32
33 struct analog_demod_info info;
34
35 void (*set_params)(struct dvb_frontend *fe,
36 struct analog_parameters *params);
37 int (*has_signal)(struct dvb_frontend *fe);
38 int (*is_stereo)(struct dvb_frontend *fe);
39 int (*get_afc)(struct dvb_frontend *fe);
40 void (*tuner_status)(struct dvb_frontend *fe);
41 void (*standby)(struct dvb_frontend *fe);
42 void (*release)(struct dvb_frontend *fe);
43 int (*i2c_gate_ctrl)(struct dvb_frontend *fe, int enable);
44
45 /** This is to allow setting tuner-specific configuration */
46 int (*set_config)(struct dvb_frontend *fe, void *priv_cfg);
47};
48
49#endif /* __TUNER_DRIVER_H__ */ 27#endif /* __TUNER_DRIVER_H__ */