staging: rtl8723bs: remove typedefs from rtl8723b_recv.h

Remove typedefs from include/rtl8723b_recv.h and convert one usage in
hal/rtl8723bs_recv.c to use the actual structure name in its pointer
declaration. Fixes two checkpatch warnings.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210209141051.4739-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Phillip Potter 2021-02-09 14:10:51 +00:00 committed by Greg Kroah-Hartman
parent 18bff59ba2
commit 62301f3a15
2 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ static void update_recvframe_attrib(struct adapter *padapter,
{ {
struct rx_pkt_attrib *pattrib; struct rx_pkt_attrib *pattrib;
struct recv_stat report; struct recv_stat report;
PRXREPORT prxreport = (PRXREPORT)&report; struct rxreport_8723b *prxreport = (struct rxreport_8723b *)&report;
report.rxdw0 = prxstat->rxdw0; report.rxdw0 = prxstat->rxdw0;
report.rxdw1 = prxstat->rxdw1; report.rxdw1 = prxstat->rxdw1;

View file

@ -9,7 +9,7 @@
#include <rtl8192c_recv.h> #include <rtl8192c_recv.h>
typedef struct rxreport_8723b { struct rxreport_8723b {
/* DWORD 0 */ /* DWORD 0 */
u32 pktlen:14; u32 pktlen:14;
u32 crc32:1; u32 crc32:1;
@ -79,9 +79,9 @@ typedef struct rxreport_8723b {
/* DWORD 5 */ /* DWORD 5 */
u32 tsfl; u32 tsfl;
} RXREPORT, *PRXREPORT; };
typedef struct phystatus_8723b { struct phystatus_8723b {
u32 rxgain_a:7; u32 rxgain_a:7;
u32 trsw_a:1; u32 trsw_a:1;
u32 rxgain_b:7; u32 rxgain_b:7;
@ -123,7 +123,7 @@ typedef struct phystatus_8723b {
u32 anttrainen:1; u32 anttrainen:1;
u32 antselb:1; u32 antselb:1;
u32 antsel:1; u32 antsel:1;
} PHYSTATUS, *PPHYSTATUS; };
s32 rtl8723bs_init_recv_priv(struct adapter *padapter); s32 rtl8723bs_init_recv_priv(struct adapter *padapter);
void rtl8723bs_free_recv_priv(struct adapter *padapter); void rtl8723bs_free_recv_priv(struct adapter *padapter);