Am Samstag 18 April 2009 11:06:19 schrieb Peter Holik: > Sorry explained it the wrong way. > I've taken get_ethernet_addr as codebase from cdc_ether.c, but had to > modify it a little bit. > > cdc_ether.c: > > static inline int > get_ethernet_addr(struct usbnet *dev, struct usb_cdc_ether_desc *e) > { > int tmp, i; > unsigned char buf [13]; > > tmp = usb_string(dev->udev, e->iMACAddress, buf, sizeof buf); If that's the only difference, add a parameter, export that function from usbnet and make your and cdc-ether's methods wrappers for this. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html