aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt20xx.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-06-06 15:10:39 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:24:02 -0400
commit7a91a80a0d1a0a83a94e773ec6245b31b7c4ceed (patch)
treed524d57405944826d4a6c375af1a77bab22546a2 /drivers/media/video/mt20xx.c
parent018ec5440b4994f560cdde78be6fb10d7ab370d7 (diff)
V4L/DVB (5753): Tuner: create struct tuner_operations
Move tuner callback function pointers out of struct tuner, into struct tuner_operations. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/mt20xx.c')
-rw-r--r--drivers/media/video/mt20xx.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/mt20xx.c b/drivers/media/video/mt20xx.c
index 5b33be8a49cd..846c6233fa3d 100644
--- a/drivers/media/video/mt20xx.c
+++ b/drivers/media/video/mt20xx.c
@@ -361,8 +361,8 @@ static int mt2032_init(struct i2c_client *c)
361 } while (xok != 1 ); 361 } while (xok != 1 );
362 priv->xogc=xogc; 362 priv->xogc=xogc;
363 363
364 t->set_tv_freq = mt2032_set_tv_freq; 364 t->ops.set_tv_freq = mt2032_set_tv_freq;
365 t->set_radio_freq = mt2032_set_radio_freq; 365 t->ops.set_radio_freq = mt2032_set_radio_freq;
366 return(1); 366 return(1);
367} 367}
368 368
@@ -490,8 +490,8 @@ static int mt2050_init(struct i2c_client *c)
490 i2c_master_recv(c,buf,1); 490 i2c_master_recv(c,buf,1);
491 491
492 tuner_dbg("mt2050: sro is %x\n",buf[0]); 492 tuner_dbg("mt2050: sro is %x\n",buf[0]);
493 t->set_tv_freq = mt2050_set_tv_freq; 493 t->ops.set_tv_freq = mt2050_set_tv_freq;
494 t->set_radio_freq = mt2050_set_radio_freq; 494 t->ops.set_radio_freq = mt2050_set_radio_freq;
495 return 0; 495 return 0;
496} 496}
497 497
@@ -519,10 +519,10 @@ int microtune_init(struct i2c_client *c)
519 priv->radio_if2 = 10700 * 1000; /* 10.7MHz - FM radio */ 519 priv->radio_if2 = 10700 * 1000; /* 10.7MHz - FM radio */
520 520
521 memset(buf,0,sizeof(buf)); 521 memset(buf,0,sizeof(buf));
522 t->set_tv_freq = NULL; 522 t->ops.set_tv_freq = NULL;
523 t->set_radio_freq = NULL; 523 t->ops.set_radio_freq = NULL;
524 t->standby = NULL; 524 t->ops.standby = NULL;
525 t->release = microtune_release; 525 t->ops.release = microtune_release;
526 if (t->std & V4L2_STD_525_60) { 526 if (t->std & V4L2_STD_525_60) {
527 tuner_dbg("pinnacle ntsc\n"); 527 tuner_dbg("pinnacle ntsc\n");
528 priv->radio_if2 = 41300 * 1000; 528 priv->radio_if2 = 41300 * 1000;