usbatm xusbatm.c,1.4,1.5
kagan at infradead.org
kagan at infradead.org
Sat Apr 9 02:50:39 EDT 2005
Update of /home/cvs/usbatm
In directory phoenix.infradead.org:/tmp/cvs-serv29517
Modified Files:
xusbatm.c
Log Message:
Change the parameter types to match what they are used for.
Index: xusbatm.c
===================================================================
RCS file: /home/cvs/usbatm/xusbatm.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- xusbatm.c 9 Apr 2005 06:30:34 -0000 1.4
+++ xusbatm.c 9 Apr 2005 06:50:36 -0000 1.5
@@ -26,24 +26,24 @@
#define XUSBATM_DRIVERS_MAX 8
-#define XUSBATM_PARM(name, type, desc) \
+#define XUSBATM_PARM(name, type, parmtype, desc) \
static type name[XUSBATM_DRIVERS_MAX]; \
static int num_##name; \
- module_param_array(name, type, &num_##name, 0444); \
+ module_param_array(name, parmtype, &num_##name, 0444); \
MODULE_PARM_DESC(name, desc)
-XUSBATM_PARM(vendor, uint, "USB device vendor");
-XUSBATM_PARM(product, uint, "USB device product");
+XUSBATM_PARM(vendor, unsigned short, ushort, "USB device vendor");
+XUSBATM_PARM(product, unsigned short, ushort, "USB device product");
/*
-XUSBATM_PARM(rx_intf, uint, "rx interface number (default 0)");
-XUSBATM_PARM(tx_intf, uint, "tx interface number (default 0)");
+XUSBATM_PARM(rx_intf, unsigned char, byte, "rx interface number (default 0)");
+XUSBATM_PARM(tx_intf, unsigned char, byte, "tx interface number (default 0)");
*/
-XUSBATM_PARM(rx_endpoint, int, "rx endpoint number");
-XUSBATM_PARM(tx_endpoint, int, "tx endpoint number");
-XUSBATM_PARM(rx_padding, uint, "rx padding (default 0)");
-XUSBATM_PARM(tx_padding, uint, "tx padding (default 0)");
+XUSBATM_PARM(rx_endpoint, unsigned char, byte, "rx endpoint number");
+XUSBATM_PARM(tx_endpoint, unsigned char, byte, "tx endpoint number");
+XUSBATM_PARM(rx_padding, unsigned char, byte, "rx padding (default 0)");
+XUSBATM_PARM(tx_padding, unsigned char, byte, "tx padding (default 0)");
static const char xusbatm_driver_name[] = "xusbatm";
More information about the Usbatm-commits
mailing list