usb: core: allow a reference device for new_id
Often, usb drivers need some driver_info to get a device to work. To have access to driver_info when using new_id, allow to pass a reference vendor:product tuple from which new_id will inherit driver_info. Signed-off-by:Wolfram Sang <wsa@the-dreams.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- Documentation/ABI/testing/sysfs-bus-usb 8 additions, 2 deletionsDocumentation/ABI/testing/sysfs-bus-usb
- drivers/usb/core/driver.c 15 additions, 3 deletionsdrivers/usb/core/driver.c
- drivers/usb/serial/bus.c 3 additions, 1 deletiondrivers/usb/serial/bus.c
- include/linux/usb.h 1 addition, 0 deletionsinclude/linux/usb.h
Loading
Please register or sign in to comment