Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: core: add a new usb_get_ptm_status() helper

Drivers who are interested in the PTM status stype, should use this
new helper to make sure they issue the correct GetStatus message.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Felipe Balbi and committed by
Greg Kroah-Hartman
f8f3e4ac 2e43f0fe

+6
+6
include/linux/usb.h
··· 1775 1775 data); 1776 1776 } 1777 1777 1778 + static inline int usb_get_ptm_status(struct usb_device *dev, void *data) 1779 + { 1780 + return usb_get_status(dev, USB_RECIP_DEVICE, USB_STATUS_TYPE_PTM, 1781 + 0, data); 1782 + } 1783 + 1778 1784 extern int usb_string(struct usb_device *dev, int index, 1779 1785 char *buf, size_t size); 1780 1786