summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tea5761.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-06-07 09:30:59 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-06-07 09:30:59 -0300
commit8f4a89da9e9a760bc538ddec6687826007a1d04c (patch)
tree1eb144567bc6064f9f16bb72d13bb1270bb29141 /linux/drivers/media/video/tea5761.c
parent9aabc7e2945432ffb81a92e556b406bc93c3ef9a (diff)
parent0d79963da3174ac0a23ef4f8ae28f8b0ad30e636 (diff)
downloadmediapointer-dvb-s2-8f4a89da9e9a760bc538ddec6687826007a1d04c.tar.gz
mediapointer-dvb-s2-8f4a89da9e9a760bc538ddec6687826007a1d04c.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/tuner
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/tea5761.c')
-rw-r--r--linux/drivers/media/video/tea5761.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/linux/drivers/media/video/tea5761.c b/linux/drivers/media/video/tea5761.c
index 170c2181c..5c10287ab 100644
--- a/linux/drivers/media/video/tea5761.c
+++ b/linux/drivers/media/video/tea5761.c
@@ -220,6 +220,13 @@ int tea5761_autodetection(struct i2c_client *c)
return 0;
}
+static struct tuner_operations tea5761_tuner_ops = {
+ .set_tv_freq = set_tv_freq,
+ .set_radio_freq = set_radio_freq,
+ .has_signal = tea5761_signal,
+ .is_stereo = tea5761_stereo,
+};
+
int tea5761_tuner_init(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);
@@ -230,10 +237,7 @@ int tea5761_tuner_init(struct i2c_client *c)
tuner_info("type set to %d (%s)\n", t->type, "Philips TEA5761HN FM Radio");
strlcpy(c->name, "tea5761", sizeof(c->name));
- t->set_tv_freq = set_tv_freq;
- t->set_radio_freq = set_radio_freq;
- t->has_signal = tea5761_signal;
- t->is_stereo = tea5761_stereo;
+ memcpy(&t->ops, &tea5761_tuner_ops, sizeof(struct tuner_operations));
return (0);
}