From 64d20e39637f98c31a3a93399e9e0628c82fc053 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Fri, 6 Mar 2009 14:05:50 +0100 Subject: tea575x-tuner: compile fixes for older kernels. From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- linux/sound/i2c/other/tea575x-tuner.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/linux/sound/i2c/other/tea575x-tuner.c b/linux/sound/i2c/other/tea575x-tuner.c index 8937198db..c5add7cb0 100644 --- a/linux/sound/i2c/other/tea575x-tuner.c +++ b/linux/sound/i2c/other/tea575x-tuner.c @@ -77,11 +77,7 @@ static struct v4l2_queryctrl radio_qctrl[] = { * 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; @@ -209,9 +205,9 @@ static int vidioc_queryctrl(struct file *file, void *priv, static int vidioc_g_ctrl(struct file *file, void *priv, struct v4l2_control *ctrl) { +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17) struct snd_tea575x *tea = video_drvdata(file); -#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17) switch (ctrl->id) { case V4L2_CID_AUDIO_MUTE: if (tea->ops->mute) { @@ -226,9 +222,9 @@ static int vidioc_g_ctrl(struct file *file, void *priv, static int vidioc_s_ctrl(struct file *file, void *priv, struct v4l2_control *ctrl) { +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17) struct snd_tea575x *tea = video_drvdata(file); -#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17) switch (ctrl->id) { case V4L2_CID_AUDIO_MUTE: if (tea->ops->mute) { @@ -301,11 +297,7 @@ static struct video_device tea575x_radio = { /* * 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 { int retval; unsigned int val; -- cgit v1.2.3