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

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

diff --git a/drivers/media/video/tea5767.c b/drivers/media/video/tea5767.c
index c551042..9cce9be 100644
--- a/drivers/media/video/tea5767.c
+++ b/drivers/media/video/tea5767.c
@@ -343,6 +343,14 @@ int tea5767_autodetection(struct i2c_client *c)
        return 0;
 }
 
+static struct tuner_operations tea5767_tuner_ops = {
+       .set_tv_freq    = set_tv_freq,
+       .set_radio_freq = set_radio_freq,
+       .has_signal     = tea5767_signal,
+       .is_stereo      = tea5767_stereo,
+       .standby        = tea5767_standby,
+};
+
 int tea5767_tuner_init(struct i2c_client *c)
 {
        struct tuner *t = i2c_get_clientdata(c);
@@ -350,11 +358,7 @@ int tea5767_tuner_init(struct i2c_client *c)
        tuner_info("type set to %d (%s)\n", t->type, "Philips TEA5767HN FM 
Radio");
        strlcpy(c->name, "tea5767", sizeof(c->name));
 
-       t->ops.set_tv_freq = set_tv_freq;
-       t->ops.set_radio_freq = set_radio_freq;
-       t->ops.has_signal = tea5767_signal;
-       t->ops.is_stereo = tea5767_stereo;
-       t->ops.standby = tea5767_standby;
+       memcpy(&t->ops, &tea5767_tuner_ops, sizeof(struct tuner_operations));
 
        return (0);
 }
-
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