patch-2.1.115 linux/drivers/char/radio-aimslab.c

Next file: linux/drivers/char/radio-aztech.c
Previous file: linux/drivers/char/pty.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/drivers/char/radio-aimslab.c linux/drivers/char/radio-aimslab.c
@@ -155,7 +155,7 @@
 
 	/* adapted from radio-aztech.c */
 
-	freq = (freq / 16.0) * 100;	/* massage the data a little	*/
+	freq = (freq * 100) / 16;	/* massage the data a little	*/
 	freq += 1070;			/* IF = 10.7 MHz 		*/
 	freq /= 5;			/* ref = 25 kHz			*/
 
@@ -223,8 +223,8 @@
 				return -EFAULT;
 			if(v.tuner)	/* Only 1 tuner */ 
 				return -EINVAL;
-			v.rangelow=(int)(88.0*16);
-			v.rangehigh=(int)(108.0*16);
+			v.rangelow=(88*16);
+			v.rangehigh=(108*16);
 			v.flags=0;
 			v.mode=VIDEO_MODE_AUTO;
 			v.signal=0xFFFF*rt_getsigstr(rt);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov