Re: [PATCH] usb driver for intellon based PLC like devolo dlan duo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Samstag 18 April 2009 08:48:22 schrieb Peter Holik:
> >> +static inline int get_ethernet_addr(struct usbnet *dev)
> >> +{
> >> +    int             tmp, i;
> >> +    unsigned char   buf [13];
> >> +
> >> +    tmp = usb_string(dev->udev, 3, buf, sizeof buf);
> >> +    if (tmp != 12) {
> >> +            devdbg(dev, "bad MAC string fetch, %d\n", tmp);
> >> +            if (tmp >= 0)
> >> +                    tmp = -EINVAL;
> >> +            return tmp;
> >> +    }
> >> +    for (i = tmp = 0; i < 6; i++, tmp += 2)
> >> +            dev->net->dev_addr [i] =
> >> +                    (nibble(buf [tmp]) << 4) + nibble(buf [tmp + 1]);
> >> +    return 0;
> >> +}
> >
> > Same here.
>
> Disagree, because i've taken "nibble" and "get_ethernet_addr" from
> cdc_ether.c to have the same code (the version of Jan was different).

In this case you should look at having cdc-ether export these functions.

	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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux