speedtch usbatm.c,1.13,1.14 usbatm.h,1.9,1.10
Duncan Sands
duncan at infradead.org
Mon Feb 7 18:50:44 EST 2005
- Previous message: speedtch usbatm.c,1.12,1.13 usbatm.h,1.8,1.9
- Next message: usbatm cxacru.c.old, 1.1, NONE usb_atm.c, 1.13, NONE usb_atm.h, 1.5,
NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv17669
Modified Files:
usbatm.c usbatm.h
Log Message:
I think it is nicer to use the minidriver name rather than the generic "usbatm",
so here it is...
Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- usbatm.c 7 Feb 2005 23:21:01 -0000 1.13
+++ usbatm.c 7 Feb 2005 23:50:41 -0000 1.14
@@ -954,7 +954,7 @@
int ret;
/* ATM init */
- atm_dev = atm_dev_register(usbatm_driver_name, &usbatm_atm_devops, -1, NULL);
+ atm_dev = atm_dev_register(instance->driver_name, &usbatm_atm_devops, -1, NULL);
if (!atm_dev) {
dbg("usbatm_atm_init: failed to register ATM device!");
return -1;
@@ -1057,6 +1057,7 @@
/* public fields */
instance->driver = driver;
+ snprintf(instance->driver_name, sizeof(instance->driver_name), driver->driver_name);
instance->usb_dev = dev;
instance->usb_intf = intf;
Index: usbatm.h
===================================================================
RCS file: /home/cvs/speedtch/usbatm.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- usbatm.h 7 Feb 2005 23:21:01 -0000 1.9
+++ usbatm.h 7 Feb 2005 23:50:41 -0000 1.10
@@ -154,6 +154,7 @@
/* mini driver */
struct usbatm_driver *driver;
void *driver_data;
+ char driver_name[16];
/* USB device */
struct usb_device *usb_dev;
- Previous message: speedtch usbatm.c,1.12,1.13 usbatm.h,1.8,1.9
- Next message: usbatm cxacru.c.old, 1.1, NONE usb_atm.c, 1.13, NONE usb_atm.h, 1.5,
NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Usbatm-commits
mailing list