diff options
| author | Greg Kroah-Hartman <[email protected]> | 2020-09-14 17:37:46 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-16 11:02:23 +0200 |
| commit | fcc2cc1f35613c016e1de25bb001bfdd9eaa25f9 (patch) | |
| tree | aa46d8f468a9ea07bfd67003d61bc6440e8bb045 /include/linux | |
| parent | a4e6451d3214e160107a17304fb90fb11bd6513b (diff) | |
USB: move snd_usb_pipe_sanity_check into the USB core
snd_usb_pipe_sanity_check() is a great function, so let's move it into
the USB core so that other parts of the kernel, including the USB core,
can call it.
Name it usb_pipe_type_check() to match the existing
usb_urb_ep_type_check() call, which now uses this function.
Cc: Jaroslav Kysela <[email protected]>
Cc: "Gustavo A. R. Silva" <[email protected]>
Cc: Eli Billauer <[email protected]>
Cc: Emiliano Ingrassia <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: Alexander Tsoy <[email protected]>
Cc: "Geoffrey D. Bennett" <[email protected]>
Cc: Jussi Laako <[email protected]>
Cc: Nick Kossifidis <[email protected]>
Cc: Dmitry Panchenko <[email protected]>
Cc: Chris Wulff <[email protected]>
Cc: Jesus Ramos <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 20c555db4621..0b3963d7ec38 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -1764,6 +1764,7 @@ static inline int usb_urb_dir_out(struct urb *urb) return (urb->transfer_flags & URB_DIR_MASK) == URB_DIR_OUT; } +int usb_pipe_type_check(struct usb_device *dev, unsigned int pipe); int usb_urb_ep_type_check(const struct urb *urb); void *usb_alloc_coherent(struct usb_device *dev, size_t size, |