Re: [PATCH 3/5] USB: Implement usb_device_match_id()

2019-10-09 Thread Alan Stern
On Wed, 9 Oct 2019, Bastien Nocera wrote: > > This would be better if you allowed matching against just the > > idVendor > > field rather than matching against both. That would make it a lot > > simpler to match all Apple devices, for instance. > > That should already be possible. The matching

Re: [PATCH 3/5] USB: Implement usb_device_match_id()

2019-10-09 Thread Bastien Nocera
On Wed, 2019-10-09 at 10:36 -0400, Alan Stern wrote: > On Wed, 9 Oct 2019, Bastien Nocera wrote: > > > Match a usb_device with a table of IDs. > > > > Signed-off-by: Bastien Nocera > > --- > > drivers/usb/core/driver.c | 15 +++ > > include/linux/usb.h | 2 ++ > > 2 files cha

Re: [PATCH 3/5] USB: Implement usb_device_match_id()

2019-10-09 Thread Alan Stern
On Wed, 9 Oct 2019, Bastien Nocera wrote: > Match a usb_device with a table of IDs. > > Signed-off-by: Bastien Nocera > --- > drivers/usb/core/driver.c | 15 +++ > include/linux/usb.h | 2 ++ > 2 files changed, 17 insertions(+) > > diff --git a/drivers/usb/core/driver.c b/dr