USB: core: export usb_cache_string()
usb_cache_string() can also be useful for the drivers so export it. Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/all/20221130174658.29282-4-mailhol.vincent@wanadoo.fr Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
594a25e1ff
commit
983055bf83
@@ -1829,6 +1829,7 @@ static inline int usb_get_ptm_status(struct usb_device *dev, void *data)
|
||||
|
||||
extern int usb_string(struct usb_device *dev, int index,
|
||||
char *buf, size_t size);
|
||||
extern char *usb_cache_string(struct usb_device *udev, int index);
|
||||
|
||||
/* wrappers that also update important state inside usbcore */
|
||||
extern int usb_clear_halt(struct usb_device *dev, int pipe);
|
||||
|
||||
Reference in New Issue
Block a user