summaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-05-13 12:35:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-14 09:30:40 -0700
commitef206f3f01d8cc0d363cfce7dc9ca11db429faa3 (patch)
treef5767b00bf7c34ea96a1450e27b2a8dda68760d9 /include/linux/usb.h
parente6bbcef0211ed75db1ca3017551a584aed4e00be (diff)
USB: add read support to usb-serial/../new_id
Keep the usb-serial support for dynamic IDs in sync with the usb support. This enables readout of dynamic device IDs for usb-serial drivers. Common code is exported from the usb core system and reused by the usb-serial bus driver. Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 5483cd70390..14933451d21 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -790,6 +790,8 @@ extern ssize_t usb_store_new_id(struct usb_dynids *dynids,
struct device_driver *driver,
const char *buf, size_t count);
+extern ssize_t usb_show_dynids(struct usb_dynids *dynids, char *buf);
+
/**
* struct usbdrv_wrap - wrapper for driver-model structure
* @driver: The driver-model core driver structure.