diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-09-11 13:50:51 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-09-11 13:50:51 -0400 |
commit | f61eebe86ec6ec2b91143727b0884d7c1f5bb59f (patch) | |
tree | 11589ae0a0f0a6af4c6e74c77fed9cb84a99775f /linux/sound/i2c/other | |
parent | 4b07c7ec71410a0f8c68befcfdfbdc0978edb140 (diff) | |
download | mediapointer-dvb-s2-f61eebe86ec6ec2b91143727b0884d7c1f5bb59f.tar.gz mediapointer-dvb-s2-f61eebe86ec6ec2b91143727b0884d7c1f5bb59f.tar.bz2 |
fix kernel backwards-compat for tea575x-tuner.[ch]
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/sound/i2c/other')
-rw-r--r-- | linux/sound/i2c/other/tea575x-tuner.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linux/sound/i2c/other/tea575x-tuner.c b/linux/sound/i2c/other/tea575x-tuner.c index 1a4f39b8d..eccf7fa26 100644 --- a/linux/sound/i2c/other/tea575x-tuner.c +++ b/linux/sound/i2c/other/tea575x-tuner.c @@ -58,7 +58,11 @@ MODULE_LICENSE("GPL"); * lowlevel part */ +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) +static void snd_tea575x_set_freq(tea575x_t *tea) +#else static void snd_tea575x_set_freq(struct snd_tea575x *tea) +#endif { unsigned long freq; @@ -89,7 +93,11 @@ static int snd_tea575x_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long data) { struct video_device *dev = video_devdata(file); +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) + tea575x_t *tea = video_get_drvdata(dev); +#else struct snd_tea575x *tea = video_get_drvdata(dev); +#endif void __user *arg = (void __user *)data; switch(cmd) { @@ -175,7 +183,11 @@ static void snd_tea575x_release(struct video_device *vfd) /* * initialize all the tea575x chips */ +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) +void snd_tea575x_init(tea575x_t *tea) +#else void snd_tea575x_init(struct snd_tea575x *tea) +#endif { unsigned int val; @@ -209,7 +221,11 @@ void snd_tea575x_init(struct snd_tea575x *tea) snd_tea575x_set_freq(tea); } +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) +void snd_tea575x_exit(tea575x_t *tea) +#else void snd_tea575x_exit(struct snd_tea575x *tea) +#endif { if (tea->vd_registered) { video_unregister_device(&tea->vd); |