Hi,
scanner.c (in kernel 2.4) contains the following code:
static void *
probe_scanner(struct usb_device *dev, unsigned int ifnum,
const struct usb_device_id *id)
{
[...]
struct usb_interface_descriptor *interface;
struct usb_endpoint_descriptor *endpoint;
[...]
interface = dev->config[0].interface[ifnum].altsetting;
endpoint = interface[ifnum].endpoint;
[...]
Doesn't the endpoint line mean: "Use the alternate setting number
ifnum"? As ifnum is 0 for most devices it doesn't matter but for me
that looks wrong. I would just use
endpoint = interface[0].endpoint;
instead to use the first alternative setting. In Linux 2.5, the first
altsetting is used.
What about the configuration? Can I blindly use dev->config[0], or
should that be dev->actconfig?
Bye,
Henning
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel