patch-2.4.10 linux/drivers/net/wan/comx-hw-mixcom.c
Next file: linux/drivers/net/wan/comx-proto-fr.c
Previous file: linux/drivers/net/wan/comx-hw-locomx.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Thu Sep 13 16:04:43 2001
- Orig file:
v2.4.9/linux/drivers/net/wan/comx-hw-mixcom.c
- Orig date:
Mon Aug 27 12:41:43 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/net/wan/comx-hw-mixcom.c linux/drivers/net/wan/comx-hw-mixcom.c
@@ -58,6 +58,7 @@
MODULE_AUTHOR("Gergely Madarasz <gorgo@itc.hu>");
MODULE_DESCRIPTION("Hardware-level driver for the serial port of the MixCom board");
+MODULE_LICENSE("GPL");
#define MIXCOM_DATA(d) ((struct mixcom_privdata *)(COMX_CHANNEL(d)-> \
HW_privdata))
@@ -121,7 +122,7 @@
outsb(dev->base_addr + HSCX_FIFO,
- &(hw->sending->data[hw->tx_ptr]), min(unsigned int, to_send, 32));
+ &(hw->sending->data[hw->tx_ptr]), min_t(unsigned int, to_send, 32));
if (to_send <= 32) {
hscx_cmd(dev, HSCX_XTF | HSCX_XME);
kfree_skb(hw->sending);
@@ -696,7 +697,7 @@
}
*start = page + off;
if (count >= len - off) *eof = 1;
- return min(int, count, len - off);
+ return min_t(int, count, len - off);
}
@@ -763,7 +764,7 @@
return -ENOMEM;
}
- copy_from_user(page, buffer, count = min(unsigned long, count, PAGE_SIZE));
+ copy_from_user(page, buffer, count = min_t(unsigned long, count, PAGE_SIZE));
if (*(page + count - 1) == '\n') {
*(page + count - 1) = 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)