summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/drv_types.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2021-11-26 18:32:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-03 15:11:33 +0100
commit75c488c0a44dc10dc03d90b87c1eebbf0b79d55a (patch)
tree50f6084f1342747ab4971b5f06c94f53ec45767a /drivers/staging/r8188eu/include/drv_types.h
parent47ca8d19408e250ed626e0ff20afe1b7e80cc452 (diff)
downloadlinux-75c488c0a44dc10dc03d90b87c1eebbf0b79d55a.tar.bz2
staging: r8188eu: require a single bulk in endpoint
The current r8188eu driver code has no support for interrupt in endpoints. Some parts of the code assume implicitly that we use one single bulk in endpoint for the incoming network data. Make this assumption clearer and reject devices that have more than one bulk in endpoint. Ignore any interrupt in endpoints. We can then change RtInPipe into a single value instead of an array. There's no need any more to pass around the number of in endpoints. We know that it's one or the device would have been rejected. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211126173205.21352-9-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/drv_types.h')
-rw-r--r--drivers/staging/r8188eu/include/drv_types.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/include/drv_types.h b/drivers/staging/r8188eu/include/drv_types.h
index 1eb6b5f29425..700fc4d571d6 100644
--- a/drivers/staging/r8188eu/include/drv_types.h
+++ b/drivers/staging/r8188eu/include/drv_types.h
@@ -135,7 +135,7 @@ struct dvobj_priv {
u8 NumInterfaces;
/* In /Out Pipe information */
- int RtInPipe[2];
+ int RtInPipe;
int RtOutPipe[3];
u8 Queue2Pipe[HW_QUEUE_ENTRY];/* for out pipe mapping */
@@ -146,7 +146,6 @@ struct dvobj_priv {
/*-------- below is for USB INTERFACE --------*/
u8 ishighspeed;
- u8 RtNumInPipes;
u8 RtNumOutPipes;
int RegUsbSS;
struct semaphore usb_suspend_sema;