summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-cadet.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/radio/radio-cadet.c')
-rw-r--r--linux/drivers/media/radio/radio-cadet.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/linux/drivers/media/radio/radio-cadet.c b/linux/drivers/media/radio/radio-cadet.c
index 310ae1f06..fd7bc09fc 100644
--- a/linux/drivers/media/radio/radio-cadet.c
+++ b/linux/drivers/media/radio/radio-cadet.c
@@ -74,7 +74,7 @@ static __u16 sigtable[2][4]={{5,10,30,150},{28,40,63,1000}};
Note: cadet_getrds() is not used at the moment. It will be useful for future
extensions, e.g. an ioctl to query RDS reception quality. - Hans J. Koch
*/
-static int
+static int
cadet_getrds(void)
{
int rds_mbs_stat=0;
@@ -99,7 +99,7 @@ cadet_getrds(void)
}
#endif
-static int
+static int
cadet_getstereo(void)
{
int ret = V4L2_TUNER_SUB_MONO;
@@ -114,7 +114,7 @@ cadet_getstereo(void)
return ret;
}
-static unsigned
+static unsigned
cadet_gettune(void)
{
int curvol,i;
@@ -152,7 +152,7 @@ cadet_gettune(void)
return fifo;
}
-static unsigned
+static unsigned
cadet_getfreq(void)
{
int i;
@@ -185,7 +185,7 @@ cadet_getfreq(void)
return freq;
}
-static void
+static void
cadet_settune(unsigned fifo)
{
int i;
@@ -214,7 +214,7 @@ cadet_settune(unsigned fifo)
spin_unlock(&cadet_io_lock);
}
-static void
+static void
cadet_setfreq(unsigned freq)
{
unsigned fifo;
@@ -275,7 +275,7 @@ cadet_setfreq(unsigned freq)
}
-static int
+static int
cadet_getvol(void)
{
int ret = 0;
@@ -291,7 +291,7 @@ cadet_getvol(void)
}
-static void
+static void
cadet_setvol(int vol)
{
spin_lock(&cadet_io_lock);
@@ -303,7 +303,7 @@ cadet_setvol(int vol)
spin_unlock(&cadet_io_lock);
}
-static void
+static void
cadet_handler(unsigned long data)
{
/*
@@ -345,7 +345,7 @@ cadet_handler(unsigned long data)
-static ssize_t
+static ssize_t
cadet_read(struct file *file, char __user *data, size_t count, loff_t *ppos)
{
int i=0;
@@ -386,7 +386,7 @@ static int cadet_do_ioctl(struct inode *inode, struct file *file,
{
struct v4l2_capability *cap = arg;
memset(cap,0,sizeof(*cap));
- cap->capabilities =
+ cap->capabilities =
V4L2_CAP_TUNER |
V4L2_CAP_READWRITE;
cap->version = CADET_VERSION;
@@ -426,7 +426,7 @@ static int cadet_do_ioctl(struct inode *inode, struct file *file,
default:
return -EINVAL;
}
-
+
t->signal = sigstrength; /* We might need to modify scaling of this */
return 0;
}
@@ -435,7 +435,7 @@ static int cadet_do_ioctl(struct inode *inode, struct file *file,
struct v4l2_tuner *t = arg;
if((t->index != 0)&&(t->index != 1))
return -EINVAL;
-
+
curtuner = t->index;
return 0;
}
@@ -494,20 +494,20 @@ static int cadet_do_ioctl(struct inode *inode, struct file *file,
}
return 0;
}
-
+
default:
return -ENOIOCTLCMD;
}
}
-static int
+static int
cadet_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
{
return video_usercopy(inode, file, cmd, arg, cadet_do_ioctl);
}
-static int
+static int
cadet_open(struct inode *inode, struct file *file)
{
users++;
@@ -515,7 +515,7 @@ cadet_open(struct inode *inode, struct file *file)
return 0;
}
-static int
+static int
cadet_release(struct inode *inode, struct file *file)
{
users--;
@@ -530,7 +530,7 @@ static unsigned int
cadet_poll(struct file *file, struct poll_table_struct *wait)
{
poll_wait(file,&read_queue,wait);
- if(rdsin != rdsout)
+ if(rdsin != rdsout)
return POLLIN | POLLRDNORM;
return 0;
}