staging: wilc1000: added proper spacing for comments
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 5 Nov 2019 09:51:33 +0000 (09:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2019 17:08:53 +0000 (18:08 +0100)
Added proper space for the comments and added newline before the
comments inside a struct.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20191105095058.24223-6-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/mon.c
drivers/staging/wilc1000/netdev.h
drivers/staging/wilc1000/wlan.h
drivers/staging/wilc1000/wlan_cfg.c
drivers/staging/wilc1000/wlan_if.h

index 853fe30..48ac33f 100644 (file)
@@ -220,7 +220,7 @@ struct net_device *wilc_wfi_init_mon_interface(struct wilc *wl,
 {
        struct wilc_wfi_mon_priv *priv;
 
-       /*If monitor interface is already initialized, return it*/
+       /* If monitor interface is already initialized, return it */
        if (wl->monitor_dev)
                return wl->monitor_dev;
 
index 42e0eb1..cd8f0d7 100644 (file)
@@ -60,7 +60,7 @@ struct sta_info {
        u8 sta_associated_bss[WILC_MAX_NUM_STA][ETH_ALEN];
 };
 
-/*Parameters needed for host interface for  remaining on channel*/
+/* Parameters needed for host interface for remaining on channel */
 struct wilc_wfi_p2p_listen_params {
        struct ieee80211_channel *listen_ch;
        u32 listen_duration;
@@ -145,11 +145,13 @@ struct wilc_priv {
        struct wilc_pmkid_attr pmkid_list;
        u8 wep_key[4][WLAN_KEY_LEN_WEP104];
        u8 wep_key_len[4];
+
        /* The real interface that the monitor is on */
        struct net_device *real_ndev;
        struct wilc_wfi_key *wilc_gtk[WILC_MAX_NUM_STA];
        struct wilc_wfi_key *wilc_ptk[WILC_MAX_NUM_STA];
        u8 wilc_groupkey;
+
        /* mutexes */
        struct mutex scan_req_lock;
        bool p2p_listen_state;
@@ -224,16 +226,21 @@ struct wilc {
        int close;
        u8 vif_num;
        struct list_head vif_list;
-       /*protect vif list*/
+
+       /* protect vif list */
        struct mutex vif_mutex;
        struct srcu_struct srcu;
        u8 open_ifcs;
-       /*protect head of transmit queue*/
+
+       /* protect head of transmit queue */
        struct mutex txq_add_to_head_cs;
-       /*protect txq_entry_t transmit queue*/
+
+       /* protect txq_entry_t transmit queue */
        spinlock_t txq_spinlock;
-       /*protect rxq_entry_t receiver queue*/
+
+       /* protect rxq_entry_t receiver queue */
        struct mutex rxq_cs;
+
        /* lock to protect hif access */
        struct mutex hif_cs;
 
@@ -245,6 +252,7 @@ struct wilc {
        struct task_struct *txq_thread;
 
        int quit;
+
        /* lock to protect issue of wid command to firmware */
        struct mutex cfg_cmd_lock;
        struct wilc_cfg_frame cfg_frame;
@@ -271,6 +279,7 @@ struct wilc {
        struct wilc_cfg cfg;
        void *bus_data;
        struct net_device *monitor_dev;
+
        /* deinit lock */
        struct mutex deinit_lock;
        u8 sta_ch;
index 7469fa4..1f6957c 100644 (file)
 
 #define ENABLE_RX_VMM          (SEL_VMM_TBL1 | EN_VMM)
 #define ENABLE_TX_VMM          (SEL_VMM_TBL0 | EN_VMM)
-/*time for expiring the completion of cfg packets*/
+/* time for expiring the completion of cfg packets */
 #define WILC_CFG_PKTS_TIMEOUT  msecs_to_jiffies(2000)
 
 #define IS_MANAGMEMENT         0x100
index 904f840..c5b1678 100644 (file)
@@ -378,7 +378,7 @@ void wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,
                wilc_wlan_parse_info_frame(wilc, frame);
                rsp->type = WILC_CFG_RSP_STATUS;
                rsp->seq_no = msg_id;
-               /*call host interface info parse as well*/
+               /* call host interface info parse as well */
                wilc_gnrl_async_info_received(wilc, frame - 4, size + 4);
                break;
 
index 70eac58..7c7ee66 100644 (file)
@@ -750,10 +750,10 @@ enum {
        WID_REMOVE_KEY                  = 0x301E,
        WID_ASSOC_REQ_INFO              = 0x301F,
        WID_ASSOC_RES_INFO              = 0x3020,
-       WID_MANUFACTURER                = 0x3026, /*Added for CAPI tool */
-       WID_MODEL_NAME                  = 0x3027, /*Added for CAPI tool */
-       WID_MODEL_NUM                   = 0x3028, /*Added for CAPI tool */
-       WID_DEVICE_NAME                 = 0x3029, /*Added for CAPI tool */
+       WID_MANUFACTURER                = 0x3026, /* Added for CAPI tool */
+       WID_MODEL_NAME                  = 0x3027, /* Added for CAPI tool */
+       WID_MODEL_NUM                   = 0x3028, /* Added for CAPI tool */
+       WID_DEVICE_NAME                 = 0x3029, /* Added for CAPI tool */
 
        /* NMAC String WID list */
        WID_SET_OPERATION_MODE          = 0x3079,