On Mon, Jul 26, 2010 at 01:20:49PM -0700, Greg KH wrote: > On Mon, Jul 26, 2010 at 12:52:30PM -0700, Sarah Sharp wrote: > > On Mon, Jul 26, 2010 at 11:19:51AM -0400, Alan Stern wrote: > > > Sarah: > > > > > > The programming interface for usb_alloc_streams() and > > > usb_free_streams() seems a little strange: > > > > > > The functions accept a pointer to a usb_interface structure, > > > but they immediately convert it to a pointer to a usb_device. > > > Why not just take the usb_device pointer as an argument to > > > begin with? > > > > Greg indicated that he wanted API to start passing around interfaces, > > rather than devices. I believe the initial patches passed around a > > usb_device pointer. > > Well, interfaces make more sense, from a driver standpoint, right? What > do you need out of the usb_device structure to make you cast it right > back? I want the xHCI slot ID that is stashed in the usb_device. That's the index into the internal array of xHCI-specific device structures. Sarah Sharp -- 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