diff options
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); |