Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7fd8b263678ab8430b49c99976ade681f8a78439
Commit:     7fd8b263678ab8430b49c99976ade681f8a78439
Parent:     c22bcb07ad4555fe7ac4ce724c8ad1de889f9477
Author:     Michael Krufky <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 6 16:15:15 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Wed Jul 18 14:24:04 2007 -0300

    V4L/DVB (5755): Tda8290: store tuning operations in tuner_operations 
structure
    
    Create static struct tuner_operations tda8290_tuner_ops
    for tda8290 tuning function callback pointers
    
    Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/tda8290.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c
index 99122ff..9c1b64c 100644
--- a/drivers/media/video/tda8290.c
+++ b/drivers/media/video/tda8290.c
@@ -603,6 +603,14 @@ static void tda8290_release(struct i2c_client *c)
        t->priv = NULL;
 }
 
+static struct tuner_operations tda8290_tuner_ops = {
+       .set_tv_freq    = set_tv_freq,
+       .set_radio_freq = set_radio_freq,
+       .has_signal     = has_signal,
+       .standby        = standby,
+       .release        = tda8290_release,
+};
+
 int tda8290_init(struct i2c_client *c)
 {
        struct tda8290_priv *priv = NULL;
@@ -667,11 +675,8 @@ int tda8290_init(struct i2c_client *c)
        }
        tuner_info("type set to %s\n", c->name);
 
-       t->ops.set_tv_freq    = set_tv_freq;
-       t->ops.set_radio_freq = set_radio_freq;
-       t->ops.has_signal = has_signal;
-       t->ops.standby = standby;
-       t->ops.release = tda8290_release;
+       memcpy(&t->ops, &tda8290_tuner_ops, sizeof(struct tuner_operations));
+
        priv->tda827x_lpsel = 0;
        t->mode = V4L2_TUNER_ANALOG_TV;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to