On Thu, Sep 04, 2003 at 10:32:09AM +1000, David Findlay wrote: > > > You need to familiarize yourself with the linux/include/linux/usb*.h files. > > > > From 2.4.21, usb.h says: > > > > #define USB_DEVICE_VER(vend,prod,lo,hi) \ > > match_flags: USB_DEVICE_ID_MATCH_DEVICE_AND_VERSION, idVendor: (vend), > > idProduct: (prod), bcdDevice_lo: (lo), bcdDevice_hi: (hi) > > > > so this macro specifies vendorID, productID, Device version (low > > threshold), and Device version (high threshold). > > > > Then device matching is done on all of those parameters. > > In the ibmcam example, that entry only matches the VENDOR/PRODUCT IDs > > with device version == 2. > > Okay so is this the major device version? My device reports a version number > 1.00 in /proc/bus/usb/devices, so if I set 0x0001, 0x0001 will this match > this version number? Thanks,
Why care about the version number at all? What's wrong with just using USB_DEVICE()? thanks, greg k-h ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
