Skip to contentSkip to conversation

Staging: rtl8712: Coding Style warnings fix for block comments

PATCH New Punit Vara 1 participant 1 message Sep 23, 2015 Staging

lore
Share & tools
lore

Punit Vara

author
#0 lore raw

PATCH 1/1 Staging: rtl8712: Coding Style warnings fix for block comments

This is patch to the rtl871x_pwrctrl.c file that fixes following warning reported by checkpatch.pl :

-Block comments use a trailing */ on a separate line -Block comments use * on subsequent lines

---
 drivers/staging/rtl8712/rtl871x_pwrctrl.c | 41 ++++++++++++++++---------------
 1 file changed, 21 insertions(+), 20 deletions(-)
drivers/staging/rtl8712/rtl871x_pwrctrl.c +21 -20
index 9bc04f4..5b8381a 100644
@@ -53,7 +53,8 @@ void r8712_set_rpwm(struct _adapter *padapter, u8 val8)
 		pwrpriv->cpwm = val8;
 		break;
 	case PS_STATE_S2:/* only for USB normal powersave mode use,
-			  * temp mark some code. */
+			  * temp mark some code.
+			  */
 	case PS_STATE_S3:
 	case PS_STATE_S4:
 		pwrpriv->cpwm = val8;
@@ -191,19 +192,19 @@ void r8712_init_pwrctrl_priv(struct _adapter *padapter)
 }
 
 /*
-Caller: r8712_cmd_thread
-
-Check if the fw_pwrstate is okay for issuing cmd.
-If not (cpwm should be is less than P2 state), then the sub-routine
-will raise the cpwm to be greater than or equal to P2.
-
-Calling Context: Passive
-
-Return Value:
-
-_SUCCESS: r8712_cmd_thread can issue cmds to firmware afterwards.
-_FAIL: r8712_cmd_thread can not do anything.
-*/
+ * Caller: r8712_cmd_thread
+ *
+ * Check if the fw_pwrstate is okay for issuing cmd.
+ * If not (cpwm should be is less than P2 state), then the sub-routine
+ * will raise the cpwm to be greater than or equal to P2.
+ *
+ * Calling Context: Passive
+ *
+ * Return Value:
+ *
+ * _SUCCESS: r8712_cmd_thread can issue cmds to firmware afterwards.
+ * _FAIL: r8712_cmd_thread can not do anything.
+ */
 sint r8712_register_cmd_alive(struct _adapter *padapter)
 {
 	uint res = _SUCCESS;
@@ -220,12 +221,12 @@ sint r8712_register_cmd_alive(struct _adapter *padapter)
 }
 
 /*
-Caller: ISR
-
-If ISR's txdone,
-No more pkts for TX,
-Then driver shall call this fun. to power down firmware again.
-*/
+ * Caller: ISR
+ *
+ * If ISR's txdone,
+ * No more pkts for TX,
+ * Then driver shall call this fun. to power down firmware again.
+ */
 
 void r8712_unregister_cmd_alive(struct _adapter *padapter)
 {
Signature · 1 line
2.5.2