staging: rtl8712: add blank lines after declarations and remove extra blank lines
cover staging: rtl8712: add blank lines after declarations and remove extra blank lines
This patchset adds blank lines after function/struct/union/enum declarations and removes extra blank lines. Reported by checkpatch.
Zhansaya Bagdauletkyzy (2):
staging: rtl8712: add blank lines after declarations
staging: rtl8712: remove extra blank lines
drivers/staging/rtl8712/rtl8712_recv.h | 2 +- drivers/staging/rtl8712/rtl871x_cmd.h | 10 ++++++++++ drivers/staging/rtl8712/rtl871x_event.h | 1 + drivers/staging/rtl8712/rtl871x_mlme.c | 3 --- drivers/staging/rtl8712/rtl871x_mp.c | 1 + drivers/staging/rtl8712/rtl871x_mp.h | 1 + drivers/staging/rtl8712/rtl871x_mp_ioctl.c | 3 +++ drivers/staging/rtl8712/rtl871x_pwrctrl.h | 3 --- drivers/staging/rtl8712/rtl871x_recv.c | 1 + drivers/staging/rtl8712/rtl871x_recv.h | 1 - 10 files changed, 18 insertions(+), 8 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/2 staging: rtl8712: add blank lines after declarations
Add blank lines after function/struct/union/enum declarations to adhere to Linux kernel coding style.
Reported by checkpatch.
Signed-off-by Zhansaya Bagdauletkyzy <[email protected]>
--- drivers/staging/rtl8712/rtl8712_recv.h | 1 + drivers/staging/rtl8712/rtl871x_cmd.h | 10 ++++++++++ drivers/staging/rtl8712/rtl871x_event.h | 1 + drivers/staging/rtl8712/rtl871x_mp.c | 1 + drivers/staging/rtl8712/rtl871x_mp.h | 1 + drivers/staging/rtl8712/rtl871x_mp_ioctl.c | 3 +++ drivers/staging/rtl8712/rtl871x_recv.c | 1 + 7 files changed, 18 insertions(+)
drivers/staging/rtl8712/rtl8712_recv.h +1 -0
@@ -66,6 +66,7 @@ struct phy_stat {__le32 phydw6;__le32 phydw7; }; +#define PHY_STAT_GAIN_TRSW_SHT 0#define PHY_STAT_PWDB_ALL_SHT 4#define PHY_STAT_CFOSHO_SHT 5
drivers/staging/rtl8712/rtl871x_cmd.h +10 -0
@@ -333,6 +333,7 @@ struct getdatarate_parm {u32 rsvd; }; +struct getdatarate_rsp {u8 datarates[NumRates]; };
@@ -377,6 +378,7 @@ struct getphy_rsp {struct readBB_parm {u8 offset; }; +struct readBB_rsp {u8 value; };
@@ -384,6 +386,7 @@ struct readBB_rsp {struct readTSSI_parm {u8 offset; }; +struct readTSSI_rsp {u8 value; };
@@ -400,6 +403,7 @@ struct writePTM_parm {struct readRF_parm {u8 offset; }; +struct readRF_rsp {u32 value; };
@@ -498,6 +502,7 @@ struct settxagctbl_parm {struct gettxagctbl_parm {u32 rsvd; }; +struct gettxagctbl_rsp {u32 txagc[MAX_RATES_LENGTH ]; };
@@ -513,6 +518,7 @@ struct setssup_parm {struct getssup_parm {u32 rsvd; }; +struct getssup_rsp {u8 ss_ForceUp[MAX_RATES_LENGTH ]; };
@@ -524,6 +530,7 @@ struct setssdlevel_parm {struct getssdlevel_parm {u32 rsvd; }; +struct getssdlevel_rsp {u8 ss_DLevel[MAX_RATES_LENGTH ]; };
@@ -535,6 +542,7 @@ struct setssulevel_parm {struct getssulevel_parm {u32 rsvd; }; +struct getssulevel_rsp {u8 ss_ULevel[MAX_RATES_LENGTH ]; };
@@ -585,6 +593,7 @@ struct setratable_parm {struct getratable_parm {uint rsvd; }; +struct getratable_rsp {u8 ss_ForceUp[NumRates];u8 ss_ULevel[NumRates];
@@ -621,6 +630,7 @@ struct getbcnokcnt_rsp {struct getbcnerrcnt_parm {unsigned int rsvd; }; +struct getbcnerrcnt_rsp {unsigned long bcnerrcnt; };
drivers/staging/rtl8712/rtl871x_event.h +1 -0
@@ -102,6 +102,7 @@ struct ADDBA_Req_Report_parm {unsigned short StartSeqNum; unsigned char tid; }; +#include "rtl8712_event.h" #endif /* _WLANEVENT_H_ */
drivers/staging/rtl8712/rtl871x_mp.c +1 -0
@@ -387,6 +387,7 @@ void r8712_SwitchBandwidth(struct _adapter *pAdapter)break ; } } +/*------------------------------Define structure----------------------------*/ struct R_ANTENNA_SELECT_OFDM {u32 r_tx_antenna:4 ;
drivers/staging/rtl8712/rtl871x_mp.h +1 -0
@@ -121,6 +121,7 @@ struct bb_reg_param {u32 offset;u32 value; }; +/* ======================================================================= */ #define LOWER true
drivers/staging/rtl8712/rtl871x_mp_ioctl.c +3 -0
@@ -681,6 +681,7 @@ uint oid_rt_pro_read_efuse_hdl(struct oid_par_priv *poid_par_priv) *poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;return status; } +/*------------------------------------------------------------------------*/ uint oid_rt_pro_write_efuse_hdl (struct oid_par_priv *poid_par_priv) {
@@ -708,6 +709,7 @@ uint oid_rt_pro_write_efuse_hdl(struct oid_par_priv *poid_par_priv) status =RNDIS_STATUS_FAILURE ;return status; } +/*----------------------------------------------------------------------*/ uint oid_rt_get_efuse_current_size_hdl (struct oid_par_priv *poid_par_priv)
@@ -849,6 +851,7 @@ unsigned int mp_ioctl_xmit_packet_hdl(struct oid_par_priv *poid_par_priv) {return _SUCCESS; } +/*-------------------------------------------------------------------------*/ uint oid_rt_set_power_down_hdl (struct oid_par_priv *poid_par_priv) {
drivers/staging/rtl8712/rtl871x_recv.c +1 -0
@@ -219,6 +219,7 @@ union recv_frame *r8712_decryptor(struct _adapter *padapter, }return return_packet; } +/*###set the security information in the recv_frame */ union recv_frame *r8712_portctrl (struct _adapter *adapter,union recv_frame *precv_frame)
Signature · 1 line
2.25.1
PATCH 2/2 staging: rtl8712: remove extra blank lines
In reply to Zhansaya BagdauletkyzyRemove extra blank lines to adhere to Linux kernel coding style. Reported by checkpatch.
Signed-off-by Zhansaya Bagdauletkyzy <[email protected]>
--- drivers/staging/rtl8712/rtl8712_recv.h | 1 - drivers/staging/rtl8712/rtl871x_mlme.c | 3 --- drivers/staging/rtl8712/rtl871x_pwrctrl.h | 3 --- drivers/staging/rtl8712/rtl871x_recv.h | 1 - 4 files changed, 8 deletions(-)
drivers/staging/rtl8712/rtl8712_recv.h +0 -1
@@ -85,7 +85,6 @@ union recvstat {unsigned int value[RXDESC_SIZE >>2 ]; }; -struct recv_buf {struct list_head list;spinlock_t recvbuf_lock;
drivers/staging/rtl8712/rtl871x_mlme.c +0 -3
@@ -124,7 +124,6 @@ static void free_network_nolock(struct mlme_priv *pmlmepriv, pmlmepriv->num_of_scanned--; } -/* return the wlan_network with the matching addr * Shall be called under atomic context... * to avoid possible racing condition...
@@ -358,7 +357,6 @@ static void update_scanned_network(struct _adapter *adapter, plist = plist->next; } -/* If we didn't find a match, then get a new network slot to initialize * with this beacon's information */
@@ -621,7 +619,6 @@ void r8712_indicate_connect(struct _adapter *padapter) jiffies + msecs_to_jiffies(60000)); } -/* * r8712_ind_disconnect: the caller has to lock pmlmepriv->lock */
drivers/staging/rtl8712/rtl871x_pwrctrl.h +0 -3
@@ -17,7 +17,6 @@#include "osdep_service.h" #include "drv_types.h" -#define CMD_ALIVE BIT(2)enum Power_Mgnt {
@@ -63,12 +62,10 @@ enum Power_Mgnt {#define PS_STATE_S3 (PS_ALL_ON)#define PS_STATE_S4 ((PS_ST_ACTIVE) | (PS_ALL_ON)) -#define PS_IS_RF_ON (x) ((x) & (PS_ALL_ON))#define PS_IS_ACTIVE (x) ((x) & (PS_ST_ACTIVE))#define CLR_PS_STATE (x) ((x) = ((x) & (0xF0))) -struct reportpwrstate_parm {unsigned char mode;unsigned char state;/* the CPWM value */
drivers/staging/rtl8712/rtl871x_recv.h +0 -1
@@ -29,7 +29,6 @@ struct stainfo_rxcache {#define PHY_RSSI_SLID_WIN_MAX 100#define PHY_LINKQUALITY_SLID_WIN_MAX 20 -struct smooth_rssi_data {u32 elements[100 ];/* array to store values */ u32 index;/* index to current array to store */
Signature · 1 line
2.25.1