lkml.org 
[lkml]   [2002]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-usb-devel] [RFC] USB driver conversion to "struct device_driver" for 2.5.32
So to be sure I've got this right ... those modified driver
entry points change things as follows:

> + int (*probe) (struct usb_interface *intf,
> + const struct usb_device_id *id);

(a) the device (for urbs etc) is now implicit:
struct usb_device *dev = interface_to_usbdev (int):

(b) the interface index should no longer matter

(c) returns 0 (not void *) or -Errno (not null)

(d) that void * handle is explicitly intf->dev.driver_data

> + void (*disconnect) (struct usb_interface *intf);

(a) and (d) above: same change

Makes me wonder about intf->private_data, which was the
original version of intf->dev.driver_data. Shouldn't that
be removed too? It's only used in the interface claiming
calls (shouldn't they fit in with the driver model?) and
usbfs just now. Is that the usbfs work you mentioned?

- Dave



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.033 / U:4.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site