patch-2.1.116 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
- Lines: 21
- Date:
Sun Aug 9 12:18:37 1998
- Orig file:
v2.1.115/linux/drivers/char/radio-aimslab.c
- Orig date:
Thu Aug 6 14:06:31 1998
diff -u --recursive --new-file v2.1.115/linux/drivers/char/radio-aimslab.c linux/drivers/char/radio-aimslab.c
@@ -155,7 +155,11 @@
/* adapted from radio-aztech.c */
- freq = (freq * 100) / 16; /* massage the data a little */
+ /* We want to compute x * 100 / 16 without overflow
+ * So we compute x*6 + (x/100)*25 to give x*6.25
+ */
+
+ freq = freq * 6 + freq/4; /* massage the data a little */
freq += 1070; /* IF = 10.7 MHz */
freq /= 5; /* ref = 25 kHz */
@@ -308,6 +312,7 @@
rt_close,
NULL, /* Can't read (no capture ability) */
NULL, /* Can't write */
+ NULL, /* No poll */
rt_ioctl,
NULL,
NULL
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov