aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r--drivers/media/dvb/frontends/mt2060.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/mt2060.c b/drivers/media/dvb/frontends/mt2060.c
index aa0f0e576d62..508ec1b6d1fb 100644
--- a/drivers/media/dvb/frontends/mt2060.c
+++ b/drivers/media/dvb/frontends/mt2060.c
@@ -277,11 +277,6 @@ static void mt2060_calibrate(struct mt2060_priv *priv)
277 dprintk("FMCAL timed out"); 277 dprintk("FMCAL timed out");
278} 278}
279 279
280static int mt2060_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len)
281{
282 return -ENODEV;
283}
284
285static int mt2060_get_frequency(struct dvb_frontend *fe, u32 *frequency) 280static int mt2060_get_frequency(struct dvb_frontend *fe, u32 *frequency)
286{ 281{
287 struct mt2060_priv *priv = fe->tuner_priv; 282 struct mt2060_priv *priv = fe->tuner_priv;
@@ -296,6 +291,12 @@ static int mt2060_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
296 return 0; 291 return 0;
297} 292}
298 293
294static int mt2060_init(struct dvb_frontend *fe)
295{
296 struct mt2060_priv *priv = fe->tuner_priv;
297 return mt2060_writereg(priv, REG_VGAG,0x33);
298}
299
299static int mt2060_sleep(struct dvb_frontend *fe) 300static int mt2060_sleep(struct dvb_frontend *fe)
300{ 301{
301 struct mt2060_priv *priv = fe->tuner_priv; 302 struct mt2060_priv *priv = fe->tuner_priv;
@@ -319,10 +320,10 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = {
319 320
320 .release = mt2060_release, 321 .release = mt2060_release,
321 322
323 .init = mt2060_init,
322 .sleep = mt2060_sleep, 324 .sleep = mt2060_sleep,
323 325
324 .set_params = mt2060_set_params, 326 .set_params = mt2060_set_params,
325 .calc_regs = mt2060_calc_regs,
326 .get_frequency = mt2060_get_frequency, 327 .get_frequency = mt2060_get_frequency,
327 .get_bandwidth = mt2060_get_bandwidth 328 .get_bandwidth = mt2060_get_bandwidth
328}; 329};