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

Staging: bcm: Remove typedef for _BULK_ENDP_OUT and call directly.

This patch removes typedef for
_BULK_ENDP_OUT, changes the name of the
struct to bcm_bulk_endpoint_out. In addition,
any calls to typedefs BULK_ENDP_OUT, or
*PBULK_ENDP_OUT are changed to call the
struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kevin McKinney and committed by
Greg Kroah-Hartman
c1fa1eb3 89a02bfe

+3 -4
+3 -4
drivers/staging/bcm/InterfaceAdapter.h
··· 8 8 unsigned int bulk_in_pipe; 9 9 } BULK_ENDP_IN, *PBULK_ENDP_IN; 10 10 11 - 12 - typedef struct _BULK_ENDP_OUT { 11 + struct bcm_bulk_endpoint_out { 13 12 unsigned char bulk_out_buffer; 14 13 size_t bulk_out_size; 15 14 unsigned char bulk_out_endpointAddr; 16 15 unsigned int bulk_out_pipe; 17 16 /* this is used when int out endpoint is used as bulk out end point */ 18 17 unsigned char int_out_interval; 19 - } BULK_ENDP_OUT, *PBULK_ENDP_OUT; 18 + }; 20 19 21 20 struct bcm_intr_endpoint_in { 22 21 char *int_in_buffer; ··· 55 56 /* Bulk endpoint in info */ 56 57 BULK_ENDP_IN sBulkIn; 57 58 /* Bulk endpoint out info */ 58 - BULK_ENDP_OUT sBulkOut; 59 + struct bcm_bulk_endpoint_out sBulkOut; 59 60 /* Interrupt endpoint in info */ 60 61 struct bcm_intr_endpoint_in sIntrIn; 61 62 /* Interrupt endpoint out info */