X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmedia%2Fradio%2Fradio-cadet.c;h=8cc5191acd1905e4b34f9874ab5f9466c5915d2c;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=fd3f10015c929d25c7da899a6fbc626a6952ab59;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index fd3f10015..8cc5191ac 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c @@ -45,7 +45,7 @@ static int users=0; static int curtuner=0; static int tunestat=0; static int sigstrength=0; -static wait_queue_head_t readq; +static wait_queue_head_t read_queue; struct timer_list tunertimer,rdstimer,readtimer; static __u8 rdsin=0,rdsout=0,rdsstat=0; static unsigned char rdsbuf[RDS_BUFFER]; @@ -309,7 +309,7 @@ void cadet_handler(unsigned long data) * Service pending read */ if( rdsin!=rdsout) - wake_up_interruptible(&readq); + wake_up_interruptible(&read_queue); /* * Clean up and exit @@ -323,7 +323,7 @@ void cadet_handler(unsigned long data) -static ssize_t cadet_read(struct file *file, char *data, +static ssize_t cadet_read(struct file *file, char __user *data, size_t count, loff_t *ppos) { int i=0; @@ -343,7 +343,7 @@ static ssize_t cadet_read(struct file *file, char *data, if(rdsin==rdsout) { if (file->f_flags & O_NONBLOCK) return -EWOULDBLOCK; - interruptible_sleep_on(&readq); + interruptible_sleep_on(&read_queue); } while( i