patch-2.2.7 linux/drivers/net/irda/esi.c
Next file: linux/drivers/net/irda/girbil.c
Previous file: linux/drivers/net/irda/actisys.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Sat Apr 24 17:49:37 1999
- Orig file:
v2.2.6/linux/drivers/net/irda/esi.c
- Orig date:
Wed Mar 10 15:29:46 1999
diff -u --recursive --new-file v2.2.6/linux/drivers/net/irda/esi.c linux/drivers/net/irda/esi.c
@@ -6,7 +6,7 @@
* Status: Experimental.
* Author: Thomas Davis, <ratbert@radiks.net>
* Created at: Sat Feb 21 18:54:38 1998
- * Modified at: Tue Feb 9 15:36:47 1999
+ * Modified at: Mon Apr 12 11:55:30 1999
* Modified by: Dag Brattli <dagb@cs.uit.no>
* Sources: esi.c
*
@@ -56,9 +56,9 @@
esi_qos_init,
};
-__initfunc(void esi_init(void))
+__initfunc(int esi_init(void))
{
- irtty_register_dongle( &dongle);
+ return irtty_register_dongle(&dongle);
}
void esi_cleanup(void)
@@ -132,7 +132,7 @@
}
/* Change speed of serial driver */
tty->termios->c_cflag = cflag;
- tty->driver.set_termios( tty, &old_termios);
+ tty->driver.set_termios(tty, &old_termios);
irtty_set_dtr_rts(tty, dtr, rts);
}
@@ -151,6 +151,7 @@
static void esi_qos_init( struct irda_device *idev, struct qos_info *qos)
{
qos->baud_rate.bits &= IR_9600|IR_19200|IR_115200;
+ qos->min_turn_time.bits &= 0x01; /* Needs at least 10 ms */
}
#ifdef MODULE
@@ -163,8 +164,7 @@
*/
int init_module(void)
{
- esi_init();
- return(0);
+ return esi_init();
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)