diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 16:47:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:58:59 -0400 |
commit | c72bf909c1d65c4a95fee8c42cf47a5f5a5ff246 (patch) | |
tree | 6856ee9694b61f384362df5df7a3c3355b93f033 /drivers/media/dvb | |
parent | 02269f37727901e326adf52d61512e4f00c85597 (diff) |
V4L/DVB (3872): Convert bsbe1/bsru6 to refactored tuner code
Convert to tuner_ops call API.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/bsbe1.h | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/bsru6.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/bsbe1.h b/drivers/media/dvb/frontends/bsbe1.h index 78573b22ada9..6b52d5abf19f 100644 --- a/drivers/media/dvb/frontends/bsbe1.h +++ b/drivers/media/dvb/frontends/bsbe1.h | |||
@@ -89,12 +89,13 @@ static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ra | |||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | static int alps_bsbe1_pll_set(struct dvb_frontend* fe, struct i2c_adapter *i2c, struct dvb_frontend_parameters* params) | 92 | static int alps_bsbe1_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters *params) |
93 | { | 93 | { |
94 | int ret; | 94 | int ret; |
95 | u8 data[4]; | 95 | u8 data[4]; |
96 | u32 div; | 96 | u32 div; |
97 | struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; | 97 | struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; |
98 | struct i2c_adapter *i2c = fe->tuner_priv; | ||
98 | 99 | ||
99 | if ((params->frequency < 950000) || (params->frequency > 2150000)) | 100 | if ((params->frequency < 950000) || (params->frequency > 2150000)) |
100 | return -EINVAL; | 101 | return -EINVAL; |
@@ -117,7 +118,6 @@ static struct stv0299_config alps_bsbe1_config = { | |||
117 | .skip_reinit = 0, | 118 | .skip_reinit = 0, |
118 | .min_delay_ms = 100, | 119 | .min_delay_ms = 100, |
119 | .set_symbol_rate = alps_bsbe1_set_symbol_rate, | 120 | .set_symbol_rate = alps_bsbe1_set_symbol_rate, |
120 | .pll_set = alps_bsbe1_pll_set, | ||
121 | }; | 121 | }; |
122 | 122 | ||
123 | #endif | 123 | #endif |
diff --git a/drivers/media/dvb/frontends/bsru6.h b/drivers/media/dvb/frontends/bsru6.h index 2a5366ce79cc..5d13c5e4df64 100644 --- a/drivers/media/dvb/frontends/bsru6.h +++ b/drivers/media/dvb/frontends/bsru6.h | |||
@@ -101,11 +101,12 @@ static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ra | |||
101 | return 0; | 101 | return 0; |
102 | } | 102 | } |
103 | 103 | ||
104 | static int alps_bsru6_pll_set(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct dvb_frontend_parameters *params) | 104 | static int alps_bsru6_tuner_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params) |
105 | { | 105 | { |
106 | u8 buf[4]; | 106 | u8 buf[4]; |
107 | u32 div; | 107 | u32 div; |
108 | struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; | 108 | struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; |
109 | struct i2c_adapter *i2c = fe->tuner_priv; | ||
109 | 110 | ||
110 | if ((params->frequency < 950000) || (params->frequency > 2150000)) | 111 | if ((params->frequency < 950000) || (params->frequency > 2150000)) |
111 | return -EINVAL; | 112 | return -EINVAL; |
@@ -134,7 +135,6 @@ static struct stv0299_config alps_bsru6_config = { | |||
134 | .volt13_op0_op1 = STV0299_VOLT13_OP1, | 135 | .volt13_op0_op1 = STV0299_VOLT13_OP1, |
135 | .min_delay_ms = 100, | 136 | .min_delay_ms = 100, |
136 | .set_symbol_rate = alps_bsru6_set_symbol_rate, | 137 | .set_symbol_rate = alps_bsru6_set_symbol_rate, |
137 | .pll_set = alps_bsru6_pll_set, | ||
138 | }; | 138 | }; |
139 | 139 | ||
140 | #endif | 140 | #endif |