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

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

diff -u --recursive --new-file v2.1.114/linux/drivers/char/radio-aztech.c linux/drivers/char/radio-aztech.c
@@ -113,7 +113,7 @@
 {
 	int  i;
 
-	frequency = (frequency / 16.0) * 100;	/* massage data a bit */
+	frequency = (frequency * 100) / 16;	/* massage data a bit */
   
 	frequency += 1070;		/* tuning needs 24 data bits  */
 	frequency /= 5;
@@ -177,8 +177,8 @@
 				return -EFAULT;
 			if(v.tuner)	/* Only 1 tuner */ 
 				return -EINVAL;
-			v.rangelow=(int)(87.9*16);
-			v.rangehigh=(int)(107.8*16);
+			v.rangelow=(879*16)/10;
+			v.rangehigh=(1078*16)/10;
 			v.flags=0;
 			v.mode=VIDEO_MODE_AUTO;
 			v.signal=0xFFFF*az_getsigstr(az);

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