* [PATCH 0/9] drivers: staging: rtl8712 - style fix
@ 2017-02-26 2:30 Derek Robson
2017-02-26 2:30 ` [PATCH 1/9] Staging: rtl8712: rtl871x_cmd.h - block comments Derek Robson
` (8 more replies)
0 siblings, 9 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:30 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments across whole of the rtl8712 driver
Found using check patch
Derek Robson (9):
Staging: rtl8712: rtl871x_cmd.h - block comments
Staging: rtl8712: rtl871x_event.h - style fix
Staging: rtl8712: rtl871x_io.h - style fix
Staging: rtl8712: rtl871x_mlme.h - style fix
Staging: rtl8712: rtl871x_mp_ioctl.h - style fix
Staging: rtl8712: rtl871x_pwrctrl.h - style fix
Staging: rtl8712: rtl871x_recv.h - style fix
Staging: rtl8712: wifi.h - style fix
Staging: rtl8712: wlan_bssdef.h - style fix
drivers/staging/rtl8712/rtl871x_cmd.h | 2 +-
drivers/staging/rtl8712/rtl871x_event.h | 8 ++++----
drivers/staging/rtl8712/rtl871x_io.h | 14 ++++++-------
drivers/staging/rtl8712/rtl871x_mlme.h | 16 +++++++--------
drivers/staging/rtl8712/rtl871x_mp_ioctl.h | 32 +++++++++++++++---------------
drivers/staging/rtl8712/rtl871x_pwrctrl.h | 10 +++++-----
drivers/staging/rtl8712/rtl871x_recv.h | 12 +++++------
drivers/staging/rtl8712/wifi.h | 12 +++++------
drivers/staging/rtl8712/wlan_bssdef.h | 6 +++---
9 files changed, 56 insertions(+), 56 deletions(-)
--
2.11.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/9] Staging: rtl8712: rtl871x_cmd.h - block comments
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
@ 2017-02-26 2:30 ` Derek Robson
2017-02-26 2:30 ` [PATCH 2/9] Staging: rtl8712: rtl871x_event.h - style fix Derek Robson
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:30 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/rtl871x_cmd.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h b/drivers/staging/rtl8712/rtl871x_cmd.h
index 4734ca856aa2..24da2ccea04f 100644
--- a/drivers/staging/rtl8712/rtl871x_cmd.h
+++ b/drivers/staging/rtl8712/rtl871x_cmd.h
@@ -144,7 +144,7 @@ struct disconnect_parm {
* #define IW_MODE_REPEAT 4 // Wireless Repeater (forwarder)
* #define IW_MODE_SECOND 5 // Secondary master/repeater (backup)
* #define IW_MODE_MONITOR 6 // Passive monitor (listen only)
-*/
+ */
struct setopmode_parm {
u8 mode;
u8 rsvd[3];
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/9] Staging: rtl8712: rtl871x_event.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
2017-02-26 2:30 ` [PATCH 1/9] Staging: rtl8712: rtl871x_cmd.h - block comments Derek Robson
@ 2017-02-26 2:30 ` Derek Robson
2017-02-26 2:31 ` [PATCH 3/9] Staging: rtl8712: rtl871x_io.h " Derek Robson
` (6 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:30 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/rtl871x_event.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_event.h b/drivers/staging/rtl8712/rtl871x_event.h
index 5db8620980e5..517137906e6c 100644
--- a/drivers/staging/rtl8712/rtl871x_event.h
+++ b/drivers/staging/rtl8712/rtl871x_event.h
@@ -34,7 +34,7 @@
/*
* Used to report a bss has been scanned
-*/
+ */
struct survey_event {
struct wlan_bssid_ex bss;
};
@@ -42,7 +42,7 @@ struct survey_event {
/*
* Used to report that the requested site survey has been done.
* bss_cnt indicates the number of bss that has been reported.
-*/
+ */
struct surveydone_event {
unsigned int bss_cnt;
@@ -54,7 +54,7 @@ struct surveydone_event {
* -1: authentication fail
* -2: association fail
* > 0: TID
-*/
+ */
struct joinbss_event {
struct wlan_network network;
};
@@ -62,7 +62,7 @@ struct joinbss_event {
/*
* Used to report a given STA has joinned the created BSS.
* It is used in AP/Ad-HoC(M) mode.
-*/
+ */
struct stassoc_event {
unsigned char macaddr[6];
unsigned char rsvd[2];
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/9] Staging: rtl8712: rtl871x_io.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
2017-02-26 2:30 ` [PATCH 1/9] Staging: rtl8712: rtl871x_cmd.h - block comments Derek Robson
2017-02-26 2:30 ` [PATCH 2/9] Staging: rtl8712: rtl871x_event.h - style fix Derek Robson
@ 2017-02-26 2:31 ` Derek Robson
2017-02-26 2:31 ` [PATCH 4/9] Staging: rtl8712: rtl871x_mlme.h " Derek Robson
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:31 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments.
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/rtl871x_io.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_io.h b/drivers/staging/rtl8712/rtl871x_io.h
index 26dd24cddd38..dd054d7367b3 100644
--- a/drivers/staging/rtl8712/rtl871x_io.h
+++ b/drivers/staging/rtl8712/rtl871x_io.h
@@ -49,9 +49,9 @@
#define _IO_CMDMASK_ (0x1F80)
/*
- For prompt mode accessing, caller shall free io_req
- Otherwise, io_handler will free io_req
-*/
+ * For prompt mode accessing, caller shall free io_req
+ * Otherwise, io_handler will free io_req
+ */
/* IO STATUS TYPE */
#define _IO_ERR_ BIT(2)
#define _IO_SUCCESS_ BIT(1)
@@ -69,8 +69,8 @@
#define IO_WR16_ASYNC (_IO_WRITE_ | _IO_HW_)
#define IO_WR8_ASYNC (_IO_WRITE_ | _IO_BYTE_)
/*
- Only Sync. burst accessing is provided.
-*/
+ * Only Sync. burst accessing is provided.
+ */
#define IO_WR_BURST(x) (IO_WRITE_ | _IO_SYNC_ | _IO_BURST_ | \
((x) & _IOSZ_MASK_))
#define IO_RD_BURST(x) (_IO_SYNC_ | _IO_BURST_ | ((x) & _IOSZ_MASK_))
@@ -218,8 +218,8 @@ struct reg_protocol_wt {
};
/*
-Below is the data structure used by _io_handler
-*/
+ * Below is the data structure used by _io_handler
+ */
struct io_queue {
spinlock_t lock;
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/9] Staging: rtl8712: rtl871x_mlme.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
` (2 preceding siblings ...)
2017-02-26 2:31 ` [PATCH 3/9] Staging: rtl8712: rtl871x_io.h " Derek Robson
@ 2017-02-26 2:31 ` Derek Robson
2017-02-26 2:32 ` [PATCH 5/9] Staging: rtl8712: rtl871x_mp_ioctl.h " Derek Robson
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:31 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/rtl871x_mlme.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_mlme.h b/drivers/staging/rtl8712/rtl871x_mlme.h
index 53a23234c598..b21f28140f53 100644
--- a/drivers/staging/rtl8712/rtl871x_mlme.h
+++ b/drivers/staging/rtl8712/rtl871x_mlme.h
@@ -68,14 +68,14 @@
#define _FW_UNDER_SURVEY WIFI_SITE_MONITOR
/*
-there are several "locks" in mlme_priv,
-since mlme_priv is a shared resource between many threads,
-like ISR/Call-Back functions, the OID handlers, and even timer functions.
-Each _queue has its own locks, already.
-Other items are protected by mlme_priv.lock.
-To avoid possible dead lock, any thread trying to modify mlme_priv
-SHALL not lock up more than one lock at a time!
-*/
+ * there are several "locks" in mlme_priv,
+ * since mlme_priv is a shared resource between many threads,
+ * like ISR/Call-Back functions, the OID handlers, and even timer functions.
+ * Each _queue has its own locks, already.
+ * Other items are protected by mlme_priv.lock.
+ * To avoid possible dead lock, any thread trying to modify mlme_priv
+ * SHALL not lock up more than one lock at a time!
+ */
#define traffic_threshold 10
#define traffic_scan_period 500
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/9] Staging: rtl8712: rtl871x_mp_ioctl.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
` (3 preceding siblings ...)
2017-02-26 2:31 ` [PATCH 4/9] Staging: rtl8712: rtl871x_mlme.h " Derek Robson
@ 2017-02-26 2:32 ` Derek Robson
2017-02-27 14:22 ` Greg KH
2017-02-26 2:32 ` [PATCH 6/9] Staging: rtl8712: rtl871x_pwrctrl.h " Derek Robson
` (3 subsequent siblings)
8 siblings, 1 reply; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:32 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/rtl871x_mp_ioctl.h | 32 +++++++++++++++---------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_mp_ioctl.h b/drivers/staging/rtl8712/rtl871x_mp_ioctl.h
index 1102451a733d..c99a6dbae476 100644
--- a/drivers/staging/rtl8712/rtl871x_mp_ioctl.h
+++ b/drivers/staging/rtl8712/rtl871x_mp_ioctl.h
@@ -162,26 +162,26 @@ static const struct oid_obj_priv oid_rtl_seg_81_80_00[] = {
*/
{1, oid_rt_pro_set_channel_direct_call_hdl}, /*0x08*/
{1, oid_null_function}, /*0x09
- * OID_RT_PRO_SET_SLEEP_MODE_DIRECT_CALL
- */
+ * OID_RT_PRO_SET_SLEEP_MODE_DIRECT_CALL
+ */
{1, oid_null_function}, /*0x0A
- * OID_RT_PRO_SET_WAKE_MODE_DIRECT_CALL
- */
+ * OID_RT_PRO_SET_WAKE_MODE_DIRECT_CALL
+ */
{1, oid_rt_pro_set_continuous_tx_hdl}, /*0x0B
- * OID_RT_PRO_SET_TX_CONTINUOUS_DIRECT_CALL
- */
+ * OID_RT_PRO_SET_TX_CONTINUOUS_DIRECT_CALL
+ */
{1, oid_rt_pro_set_single_carrier_tx_hdl}, /*0x0C
- * OID_RT_PRO_SET_SINGLE_CARRIER_TX_CONTINUOUS
- */
+ * OID_RT_PRO_SET_SINGLE_CARRIER_TX_CONTINUOUS
+ */
{1, oid_null_function}, /*0x0D
- * OID_RT_PRO_SET_TX_ANTENNA_BB
- */
+ * OID_RT_PRO_SET_TX_ANTENNA_BB
+ */
{1, oid_rt_pro_set_antenna_bb_hdl}, /*0x0E*/
{1, oid_null_function}, /*0x0F OID_RT_PRO_SET_CR_SCRAMBLER*/
{1, oid_null_function}, /*0x10 OID_RT_PRO_SET_CR_NEW_FILTER*/
{1, oid_rt_pro_set_tx_power_control_hdl}, /*0x11
- * OID_RT_PRO_SET_TX_POWER_CONTROL
- */
+ * OID_RT_PRO_SET_TX_POWER_CONTROL
+ */
{1, oid_null_function}, /*0x12 OID_RT_PRO_SET_CR_TX_CONFIG*/
{1, oid_null_function}, /*0x13
* OID_RT_PRO_GET_TX_POWER_CONTROL
@@ -218,11 +218,11 @@ static const struct oid_obj_priv oid_rtl_seg_81_80_20[] = {
*OID_RT_PRO_QUERY_PERMANENT_ADDRESS
*/
{1, oid_null_function}, /*0x2A
- *OID_RT_PRO_SET_PHILIPS_RF_PARAMETERS
- */
+ *OID_RT_PRO_SET_PHILIPS_RF_PARAMETERS
+ */
{1, oid_rt_pro_set_carrier_suppression_tx_hdl},/*0x2B
- *OID_RT_PRO_SET_CARRIER_SUPPRESSION_TX
- */
+ *OID_RT_PRO_SET_CARRIER_SUPPRESSION_TX
+ */
{1, oid_null_function}, /*0x2C OID_RT_PRO_RECEIVE_PACKET*/
{1, oid_null_function}, /*0x2D OID_RT_PRO_WRITE_EEPROM_BYTE*/
{1, oid_null_function}, /*0x2E OID_RT_PRO_READ_EEPROM_BYTE*/
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/9] Staging: rtl8712: rtl871x_pwrctrl.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
` (4 preceding siblings ...)
2017-02-26 2:32 ` [PATCH 5/9] Staging: rtl8712: rtl871x_mp_ioctl.h " Derek Robson
@ 2017-02-26 2:32 ` Derek Robson
2017-02-26 2:32 ` [PATCH 7/9] Staging: rtl8712: rtl871x_recv.h " Derek Robson
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:32 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style fo block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/rtl871x_pwrctrl.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_pwrctrl.h b/drivers/staging/rtl8712/rtl871x_pwrctrl.h
index c82fdf85d474..4a873d053eea 100644
--- a/drivers/staging/rtl8712/rtl871x_pwrctrl.h
+++ b/drivers/staging/rtl8712/rtl871x_pwrctrl.h
@@ -48,11 +48,11 @@ enum Power_Mgnt {
};
/*
- BIT[2:0] = HW state
- BIT[3] = Protocol PS state, 0: register active state,
- 1: register sleep state
- BIT[4] = sub-state
-*/
+ * BIT[2:0] = HW state
+ * BIT[3] = Protocol PS state, 0: register active state,
+ * 1: register sleep state
+ * BIT[4] = sub-state
+ */
#define PS_DPS BIT(0)
#define PS_LCLK (PS_DPS)
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 7/9] Staging: rtl8712: rtl871x_recv.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
` (5 preceding siblings ...)
2017-02-26 2:32 ` [PATCH 6/9] Staging: rtl8712: rtl871x_pwrctrl.h " Derek Robson
@ 2017-02-26 2:32 ` Derek Robson
2017-02-26 2:33 ` [PATCH 8/9] Staging: rtl8712: wifi.h " Derek Robson
2017-02-26 2:33 ` [PATCH 9/9] Staging: rtl8712: wlan_bssdef.h " Derek Robson
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:32 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/rtl871x_recv.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_recv.h b/drivers/staging/rtl8712/rtl871x_recv.h
index f419943ad75d..6c535647daed 100644
--- a/drivers/staging/rtl8712/rtl871x_recv.h
+++ b/drivers/staging/rtl8712/rtl871x_recv.h
@@ -74,12 +74,12 @@ struct rx_pkt_attrib {
};
/*
-accesser of recv_priv: recv_entry(dispatch / passive level);
-recv_thread(passive) ; returnpkt(dispatch)
-; halt(passive) ;
-
-using enter_critical section to protect
-*/
+ * accesser of recv_priv: recv_entry(dispatch / passive level);
+ * recv_thread(passive) ; returnpkt(dispatch)
+ * ; halt(passive) ;
+ *
+ * using enter_critical section to protect
+ */
struct recv_priv {
spinlock_t lock;
struct __queue free_recv_queue;
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 8/9] Staging: rtl8712: wifi.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
` (6 preceding siblings ...)
2017-02-26 2:32 ` [PATCH 7/9] Staging: rtl8712: rtl871x_recv.h " Derek Robson
@ 2017-02-26 2:33 ` Derek Robson
2017-02-26 2:33 ` [PATCH 9/9] Staging: rtl8712: wlan_bssdef.h " Derek Robson
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:33 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/wifi.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8712/wifi.h b/drivers/staging/rtl8712/wifi.h
index 74dfc9b0e494..556367bfbe8a 100644
--- a/drivers/staging/rtl8712/wifi.h
+++ b/drivers/staging/rtl8712/wifi.h
@@ -370,7 +370,7 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
/*-----------------------------------------------------------------------------
- Below is for the security related definition
+ * Below is for the security related definition
*-----------------------------------------------------------------------------
*/
#define _RESERVED_FRAME_TYPE_ 0
@@ -415,7 +415,7 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
/* ---------------------------------------------------------------------------
- Below is the fixed elements...
+ * Below is the fixed elements...
* ---------------------------------------------------------------------------
*/
#define _AUTH_ALGM_NUM_ 2
@@ -444,14 +444,14 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
#define cap_ShortPremble BIT(5)
/*-----------------------------------------------------------------------------
- Below is the definition for 802.11i / 802.1x
+ * Below is the definition for 802.11i / 802.1x
*------------------------------------------------------------------------------
*/
#define _IEEE8021X_MGT_ 1 /*WPA */
#define _IEEE8021X_PSK_ 2 /* WPA with pre-shared key */
/*-----------------------------------------------------------------------------
- Below is the definition for WMM
+ * Below is the definition for WMM
*------------------------------------------------------------------------------
*/
#define _WMM_IE_Length_ 7 /* for WMM STA */
@@ -459,7 +459,7 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
/*-----------------------------------------------------------------------------
- Below is the definition for 802.11n
+ * Below is the definition for 802.11n
*------------------------------------------------------------------------------
*/
@@ -498,7 +498,7 @@ struct ieee80211_bar {
#define IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA 0x0004
- /**
+/*
* struct ieee80211_ht_cap - HT capabilities
*
* This structure refers to "HT capabilities element" as
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 9/9] Staging: rtl8712: wlan_bssdef.h - style fix
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
` (7 preceding siblings ...)
2017-02-26 2:33 ` [PATCH 8/9] Staging: rtl8712: wifi.h " Derek Robson
@ 2017-02-26 2:33 ` Derek Robson
8 siblings, 0 replies; 11+ messages in thread
From: Derek Robson @ 2017-02-26 2:33 UTC (permalink / raw)
To: Larry.Finger, florian.c.schilhabel, gregkh, binoy.jayan, arnd,
bhumirks, robsonde, shaily15297, raphael.beamonte, becher.jannik
Cc: devel, linux-kernel
Fixed style of block comments
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/rtl8712/wlan_bssdef.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8712/wlan_bssdef.h b/drivers/staging/rtl8712/wlan_bssdef.h
index c0654ae4d70d..9dc9ce5a2ccc 100644
--- a/drivers/staging/rtl8712/wlan_bssdef.h
+++ b/drivers/staging/rtl8712/wlan_bssdef.h
@@ -53,9 +53,9 @@ struct NDIS_802_11_CONFIGURATION_FH {
};
/*
- FW will only save the channel number in DSConfig.
- ODI Handler will convert the channel number to freq. number.
-*/
+ * FW will only save the channel number in DSConfig.
+ * ODI Handler will convert the channel number to freq. number.
+ */
struct NDIS_802_11_CONFIGURATION {
u32 Length; /* Length of structure */
u32 BeaconPeriod; /* units are Kusec */
--
2.11.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 5/9] Staging: rtl8712: rtl871x_mp_ioctl.h - style fix
2017-02-26 2:32 ` [PATCH 5/9] Staging: rtl8712: rtl871x_mp_ioctl.h " Derek Robson
@ 2017-02-27 14:22 ` Greg KH
0 siblings, 0 replies; 11+ messages in thread
From: Greg KH @ 2017-02-27 14:22 UTC (permalink / raw)
To: Derek Robson
Cc: Larry.Finger, florian.c.schilhabel, binoy.jayan, arnd, bhumirks,
shaily15297, raphael.beamonte, becher.jannik, devel, linux-kernel
On Sun, Feb 26, 2017 at 03:32:08PM +1300, Derek Robson wrote:
> Fixed style of block comments
> Found using checkpatch
>
> Signed-off-by: Derek Robson <robsonde@gmail.com>
> ---
> drivers/staging/rtl8712/rtl871x_mp_ioctl.h | 32 +++++++++++++++---------------
> 1 file changed, 16 insertions(+), 16 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/rtl871x_mp_ioctl.h b/drivers/staging/rtl8712/rtl871x_mp_ioctl.h
> index 1102451a733d..c99a6dbae476 100644
> --- a/drivers/staging/rtl8712/rtl871x_mp_ioctl.h
> +++ b/drivers/staging/rtl8712/rtl871x_mp_ioctl.h
> @@ -162,26 +162,26 @@ static const struct oid_obj_priv oid_rtl_seg_81_80_00[] = {
> */
> {1, oid_rt_pro_set_channel_direct_call_hdl}, /*0x08*/
> {1, oid_null_function}, /*0x09
> - * OID_RT_PRO_SET_SLEEP_MODE_DIRECT_CALL
> - */
> + * OID_RT_PRO_SET_SLEEP_MODE_DIRECT_CALL
> + */
> {1, oid_null_function}, /*0x0A
> - * OID_RT_PRO_SET_WAKE_MODE_DIRECT_CALL
> - */
> + * OID_RT_PRO_SET_WAKE_MODE_DIRECT_CALL
> + */
> {1, oid_rt_pro_set_continuous_tx_hdl}, /*0x0B
> - * OID_RT_PRO_SET_TX_CONTINUOUS_DIRECT_CALL
> - */
> + * OID_RT_PRO_SET_TX_CONTINUOUS_DIRECT_CALL
Now you are going out beyond 80 columns, which is what caused someone to
move the comment to the left earlier :(
Just put the comment in a single line, above the data definition, like
this:
/* 0x0B OID_RT_PRO_SET_TX_CONTINUOUS_DIRECT_CALL */
{1, oid_rt_pro_set_continuous_tx_hdl},
Which makes it easier for everyone to read and understand, which is the
main goal of cleaning up code.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-02-27 15:41 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-26 2:30 [PATCH 0/9] drivers: staging: rtl8712 - style fix Derek Robson
2017-02-26 2:30 ` [PATCH 1/9] Staging: rtl8712: rtl871x_cmd.h - block comments Derek Robson
2017-02-26 2:30 ` [PATCH 2/9] Staging: rtl8712: rtl871x_event.h - style fix Derek Robson
2017-02-26 2:31 ` [PATCH 3/9] Staging: rtl8712: rtl871x_io.h " Derek Robson
2017-02-26 2:31 ` [PATCH 4/9] Staging: rtl8712: rtl871x_mlme.h " Derek Robson
2017-02-26 2:32 ` [PATCH 5/9] Staging: rtl8712: rtl871x_mp_ioctl.h " Derek Robson
2017-02-27 14:22 ` Greg KH
2017-02-26 2:32 ` [PATCH 6/9] Staging: rtl8712: rtl871x_pwrctrl.h " Derek Robson
2017-02-26 2:32 ` [PATCH 7/9] Staging: rtl8712: rtl871x_recv.h " Derek Robson
2017-02-26 2:33 ` [PATCH 8/9] Staging: rtl8712: wifi.h " Derek Robson
2017-02-26 2:33 ` [PATCH 9/9] Staging: rtl8712: wlan_bssdef.h " Derek Robson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox