staging: r8188eu: pass a struct recv_buf to rtw_read_port
authorMartin Kaiser <martin@kaiser.cx>
Mon, 6 Feb 2023 20:17:55 +0000 (21:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:41:03 +0000 (08:41 +0100)
commitca0e0d84aecaa279f9c05bd5852c9958790c8233
treed62b7b78e24e8324df3952c2d4406c50a7119607
parent3d281bdbffb330da562df985dc30ed1075b638f4
staging: r8188eu: pass a struct recv_buf to rtw_read_port

The rtw_read_port function needs a struct recv_buf for preparing the usb
transfer.

Replace its u8 *rmem parameter with a struct recv_buf pointer to avoid
casts in the caller and in rtw_read_port.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230206201800.139195-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/hal/usb_ops_linux.c
drivers/staging/r8188eu/include/rtw_io.h