diff options
Diffstat (limited to 'drivers/media/dvb/b2c2/flexcop-fe-tuner.c')
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-fe-tuner.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index 89ea76201506..15aae7cba2d9 100644 --- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |||
@@ -183,8 +183,8 @@ static int samsung_tbmu24112_tuner_set_params(struct dvb_frontend* fe, struct dv | |||
183 | 183 | ||
184 | if (params->frequency < 1500000) buf[3] |= 0x10; | 184 | if (params->frequency < 1500000) buf[3] |= 0x10; |
185 | 185 | ||
186 | if (fe->ops->i2c_gate_ctrl) | 186 | if (fe->ops.i2c_gate_ctrl) |
187 | fe->ops->i2c_gate_ctrl(fe, 1); | 187 | fe->ops.i2c_gate_ctrl(fe, 1); |
188 | if (i2c_transfer(&fc->i2c_adap, &msg, 1) != 1) { | 188 | if (i2c_transfer(&fc->i2c_adap, &msg, 1) != 1) { |
189 | return -EIO; | 189 | return -EIO; |
190 | } | 190 | } |
@@ -342,8 +342,8 @@ static int skystar23_samsung_tbdu18132_tuner_set_params(struct dvb_frontend* fe, | |||
342 | if (params->frequency < 1550000) | 342 | if (params->frequency < 1550000) |
343 | buf[3] |= 0x02; | 343 | buf[3] |= 0x02; |
344 | 344 | ||
345 | if (fe->ops->i2c_gate_ctrl) | 345 | if (fe->ops.i2c_gate_ctrl) |
346 | fe->ops->i2c_gate_ctrl(fe, 1); | 346 | fe->ops.i2c_gate_ctrl(fe, 1); |
347 | if (i2c_transfer(&fc->i2c_adap, &msg, 1) != 1) | 347 | if (i2c_transfer(&fc->i2c_adap, &msg, 1) != 1) |
348 | return -EIO; | 348 | return -EIO; |
349 | return 0; | 349 | return 0; |
@@ -389,8 +389,8 @@ int alps_tdee4_stv0297_tuner_set_params (struct dvb_frontend* fe, struct dvb_fro | |||
389 | else if (fep->frequency <= 822000000) buf[3] = 0x08; | 389 | else if (fep->frequency <= 822000000) buf[3] = 0x08; |
390 | else buf[3] = 0x88; | 390 | else buf[3] = 0x88; |
391 | 391 | ||
392 | if (fe->ops->i2c_gate_ctrl) | 392 | if (fe->ops.i2c_gate_ctrl) |
393 | fe->ops->i2c_gate_ctrl(fe, 1); | 393 | fe->ops.i2c_gate_ctrl(fe, 1); |
394 | deb_tuner("tuner buffer for %d Hz: %x %x %x %x\n",fep->frequency, buf[0],buf[1],buf[2],buf[3]); | 394 | deb_tuner("tuner buffer for %d Hz: %x %x %x %x\n",fep->frequency, buf[0],buf[1],buf[2],buf[3]); |
395 | ret = fc->i2c_request(fc,FC_WRITE,FC_I2C_PORT_TUNER,0x61,buf[0],&buf[1],3); | 395 | ret = fc->i2c_request(fc,FC_WRITE,FC_I2C_PORT_TUNER,0x61,buf[0],&buf[1],3); |
396 | deb_tuner("tuner write returned: %d\n",ret); | 396 | deb_tuner("tuner write returned: %d\n",ret); |
@@ -505,7 +505,7 @@ int flexcop_frontend_init(struct flexcop_device *fc) | |||
505 | 505 | ||
506 | /* try the sky v2.6 (stv0299/Samsung tbmu24112(sl1935)) */ | 506 | /* try the sky v2.6 (stv0299/Samsung tbmu24112(sl1935)) */ |
507 | if ((fc->fe = stv0299_attach(&samsung_tbmu24112_config, &fc->i2c_adap)) != NULL) { | 507 | if ((fc->fe = stv0299_attach(&samsung_tbmu24112_config, &fc->i2c_adap)) != NULL) { |
508 | ops = fc->fe->ops; | 508 | ops = &fc->fe->ops; |
509 | 509 | ||
510 | ops->tuner_ops.set_params = samsung_tbmu24112_tuner_set_params; | 510 | ops->tuner_ops.set_params = samsung_tbmu24112_tuner_set_params; |
511 | 511 | ||
@@ -520,7 +520,7 @@ int flexcop_frontend_init(struct flexcop_device *fc) | |||
520 | /* try the air dvb-t (mt352/Samsung tdtc9251dh0(??)) */ | 520 | /* try the air dvb-t (mt352/Samsung tdtc9251dh0(??)) */ |
521 | if ((fc->fe = mt352_attach(&samsung_tdtc9251dh0_config, &fc->i2c_adap)) != NULL ) { | 521 | if ((fc->fe = mt352_attach(&samsung_tdtc9251dh0_config, &fc->i2c_adap)) != NULL ) { |
522 | fc->dev_type = FC_AIR_DVB; | 522 | fc->dev_type = FC_AIR_DVB; |
523 | fc->fe->ops->tuner_ops.calc_regs = samsung_tdtc9251dh0_calc_regs; | 523 | fc->fe->ops.tuner_ops.calc_regs = samsung_tdtc9251dh0_calc_regs; |
524 | info("found the mt352 at i2c address: 0x%02x",samsung_tdtc9251dh0_config.demod_address); | 524 | info("found the mt352 at i2c address: 0x%02x",samsung_tdtc9251dh0_config.demod_address); |
525 | } else | 525 | } else |
526 | /* try the air atsc 2nd generation (nxt2002) */ | 526 | /* try the air atsc 2nd generation (nxt2002) */ |
@@ -532,7 +532,7 @@ int flexcop_frontend_init(struct flexcop_device *fc) | |||
532 | /* try the air atsc 3nd generation (lgdt3303) */ | 532 | /* try the air atsc 3nd generation (lgdt3303) */ |
533 | if ((fc->fe = lgdt330x_attach(&air2pc_atsc_hd5000_config, &fc->i2c_adap)) != NULL) { | 533 | if ((fc->fe = lgdt330x_attach(&air2pc_atsc_hd5000_config, &fc->i2c_adap)) != NULL) { |
534 | fc->dev_type = FC_AIR_ATSC3; | 534 | fc->dev_type = FC_AIR_ATSC3; |
535 | fc->fe->ops->tuner_ops.set_params = lgdt3303_tuner_set_params; | 535 | fc->fe->ops.tuner_ops.set_params = lgdt3303_tuner_set_params; |
536 | info("found the lgdt3303 at i2c address: 0x%02x",air2pc_atsc_hd5000_config.demod_address); | 536 | info("found the lgdt3303 at i2c address: 0x%02x",air2pc_atsc_hd5000_config.demod_address); |
537 | } else | 537 | } else |
538 | /* try the air atsc 1nd generation (bcm3510)/panasonic ct10s */ | 538 | /* try the air atsc 1nd generation (bcm3510)/panasonic ct10s */ |
@@ -543,12 +543,12 @@ int flexcop_frontend_init(struct flexcop_device *fc) | |||
543 | /* try the cable dvb (stv0297) */ | 543 | /* try the cable dvb (stv0297) */ |
544 | if ((fc->fe = stv0297_attach(&alps_tdee4_stv0297_config, &fc->i2c_adap)) != NULL) { | 544 | if ((fc->fe = stv0297_attach(&alps_tdee4_stv0297_config, &fc->i2c_adap)) != NULL) { |
545 | fc->dev_type = FC_CABLE; | 545 | fc->dev_type = FC_CABLE; |
546 | fc->fe->ops->tuner_ops.set_params = alps_tdee4_stv0297_tuner_set_params; | 546 | fc->fe->ops.tuner_ops.set_params = alps_tdee4_stv0297_tuner_set_params; |
547 | info("found the stv0297 at i2c address: 0x%02x",alps_tdee4_stv0297_config.demod_address); | 547 | info("found the stv0297 at i2c address: 0x%02x",alps_tdee4_stv0297_config.demod_address); |
548 | } else | 548 | } else |
549 | /* try the sky v2.3 (vp310/Samsung tbdu18132(tsa5059)) */ | 549 | /* try the sky v2.3 (vp310/Samsung tbdu18132(tsa5059)) */ |
550 | if ((fc->fe = vp310_mt312_attach(&skystar23_samsung_tbdu18132_config, &fc->i2c_adap)) != NULL) { | 550 | if ((fc->fe = vp310_mt312_attach(&skystar23_samsung_tbdu18132_config, &fc->i2c_adap)) != NULL) { |
551 | ops = fc->fe->ops; | 551 | ops = &fc->fe->ops; |
552 | 552 | ||
553 | ops->tuner_ops.set_params = skystar23_samsung_tbdu18132_tuner_set_params; | 553 | ops->tuner_ops.set_params = skystar23_samsung_tbdu18132_tuner_set_params; |
554 | 554 | ||
@@ -570,7 +570,7 @@ int flexcop_frontend_init(struct flexcop_device *fc) | |||
570 | } else { | 570 | } else { |
571 | if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) { | 571 | if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) { |
572 | err("frontend registration failed!"); | 572 | err("frontend registration failed!"); |
573 | ops = fc->fe->ops; | 573 | ops = &fc->fe->ops; |
574 | if (ops->release != NULL) | 574 | if (ops->release != NULL) |
575 | ops->release(fc->fe); | 575 | ops->release(fc->fe); |
576 | fc->fe = NULL; | 576 | fc->fe = NULL; |