summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorRazvan Heghedus <heghedus.razvan@gmail.com>2021-12-13 20:36:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-17 17:02:04 +0100
commitb1e9e7ebe6c0b1b200d51ef21ad09652bb65c4b4 (patch)
tree9b3f4e000c6bcc6706515f075beadefc93c666bb /drivers/usb
parentcf081d009c447647c6b36aced535ca427dbebe72 (diff)
downloadlinux-b1e9e7ebe6c0b1b200d51ef21ad09652bb65c4b4.tar.bz2
usb: core: Export usb_device_match_id
Export usb_device_match_id so that it can be used for easily matching an usb_device with a table of IDs. Signed-off-by: Razvan Heghedus <heghedus.razvan@gmail.com> Link: https://lore.kernel.org/r/20211213183617.14156-1-heghedus.razvan@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index 267a134311be..355ed33a2179 100644
--- a/drivers/usb/core/driver.c
+++ b/drivers/usb/core/driver.c
@@ -834,6 +834,7 @@ const struct usb_device_id *usb_device_match_id(struct usb_device *udev,
return NULL;
}
+EXPORT_SYMBOL_GPL(usb_device_match_id);
bool usb_driver_applicable(struct usb_device *udev,
struct usb_device_driver *udrv)