Staging: gdm72xx: Add appropriate comment for spinlock_t definition
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 26 Dec 2015 21:14:42 +0000 (02:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 04:10:47 +0000 (20:10 -0800)
Fix checkpatch issue: "CHECK: spinlock_t definition without comment".

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_qos.c
drivers/staging/gdm72xx/gdm_qos.h
drivers/staging/gdm72xx/gdm_sdio.h
drivers/staging/gdm72xx/gdm_usb.h
drivers/staging/gdm72xx/gdm_wimax.c

index cad347a05d18aaf885ca71462d07a5cda218c96d..8c99f919cae1b5966c605a8bc05ab70e15a3b91e 100644 (file)
@@ -28,7 +28,7 @@
 static struct {
        struct list_head head;
        int cnt;
-       spinlock_t lock;
+       spinlock_t lock; /* protect structure fields */
 } qos_free_list;
 
 static void init_qos_entry_list(void)
index bbc8aab338b50138a9cd40bf6acd658aa924302b..a4e5c1c5677f0ae904bc36196b791fd45dfb74e8 100644 (file)
@@ -62,7 +62,7 @@ struct qos_cb_s {
        int                     qos_list_cnt;
        int                     qos_null_idx;
        struct gdm_wimax_csr_s  csr[QOS_MAX];
-       spinlock_t              qos_lock;
+       spinlock_t              qos_lock; /* Protect structure fields */
        int                     qos_limit_size;
 };
 
index aa7dad22a219d0ee471f6e63a0df95114a6c4d17..30428b061c91e7f072c4e82a9359ac90c82f7b6c 100644 (file)
@@ -34,7 +34,7 @@ struct tx_cxt {
        struct list_head        hci_list;
        ktime_t                 sdu_stamp;
        u8                      *sdu_buf;
-       spinlock_t              lock;
+       spinlock_t              lock; /* protect structure fields */
        int                     can_send;
        int                     stop_sdu_tx;
 };
@@ -50,7 +50,7 @@ struct rx_cxt {
        struct list_head        free_list;
        struct list_head        req_list;
        u8                      *rx_buf;
-       spinlock_t              lock;
+       spinlock_t              lock; /* protect structure fields */
 };
 
 struct sdiowm_dev {
index 8e58a25e71438f894035e093d2492fecb9e1f565..f128914f8f5442d0914951e3a67e8b9267870ff1 100644 (file)
@@ -41,7 +41,7 @@ struct tx_cxt {
 #if defined(CONFIG_WIMAX_GDM72XX_USB_PM) || defined(CONFIG_WIMAX_GDM72XX_K_MODE)
        struct list_head        pending_list;
 #endif
-       spinlock_t              lock;
+       spinlock_t              lock; /* Protect structure fields */
 };
 
 struct usb_rx {
@@ -56,7 +56,7 @@ struct usb_rx {
 struct rx_cxt {
        struct list_head        free_list;
        struct list_head        used_list;
-       spinlock_t              lock;
+       spinlock_t              lock; /* Protect structure fields */
 };
 
 struct usbwm_dev {
index ba03f9386567acbe140850881bb2ae7ab55feba6..1b3da2ba6ed14710d42fc2c908446ef586bea679 100644 (file)
@@ -45,7 +45,7 @@ static struct {
        int ref_cnt;
        struct sock *sock;
        struct list_head evtq;
-       spinlock_t evt_lock;
+       spinlock_t evt_lock; /*protect structure fields */
        struct list_head freeq;
        struct work_struct ws;
 } wm_event;