summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-12-26 21:14:42 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-08 04:10:47 (GMT)
commitf1cf2312ae22803f38d37ed141c3e4f2e84f8ee1 (patch)
tree793c1b4df11a83b981cdb2428c54b68d2c6424f4
parent896779106e070326b50a5cff888273800a862327 (diff)
downloadlinux-f1cf2312ae22803f38d37ed141c3e4f2e84f8ee1.tar.xz
Staging: gdm72xx: Add appropriate comment for spinlock_t definition
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>
-rw-r--r--drivers/staging/gdm72xx/gdm_qos.c2
-rw-r--r--drivers/staging/gdm72xx/gdm_qos.h2
-rw-r--r--drivers/staging/gdm72xx/gdm_sdio.h4
-rw-r--r--drivers/staging/gdm72xx/gdm_usb.h4
-rw-r--r--drivers/staging/gdm72xx/gdm_wimax.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/gdm72xx/gdm_qos.c b/drivers/staging/gdm72xx/gdm_qos.c
index cad347a..8c99f91 100644
--- a/drivers/staging/gdm72xx/gdm_qos.c
+++ b/drivers/staging/gdm72xx/gdm_qos.c
@@ -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)
diff --git a/drivers/staging/gdm72xx/gdm_qos.h b/drivers/staging/gdm72xx/gdm_qos.h
index bbc8aab..a4e5c1c 100644
--- a/drivers/staging/gdm72xx/gdm_qos.h
+++ b/drivers/staging/gdm72xx/gdm_qos.h
@@ -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;
};
diff --git a/drivers/staging/gdm72xx/gdm_sdio.h b/drivers/staging/gdm72xx/gdm_sdio.h
index aa7dad2..30428b0 100644
--- a/drivers/staging/gdm72xx/gdm_sdio.h
+++ b/drivers/staging/gdm72xx/gdm_sdio.h
@@ -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 {
diff --git a/drivers/staging/gdm72xx/gdm_usb.h b/drivers/staging/gdm72xx/gdm_usb.h
index 8e58a25..f128914 100644
--- a/drivers/staging/gdm72xx/gdm_usb.h
+++ b/drivers/staging/gdm72xx/gdm_usb.h
@@ -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 {
diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c
index ba03f93..1b3da2b 100644
--- a/drivers/staging/gdm72xx/gdm_wimax.c
+++ b/drivers/staging/gdm72xx/gdm_wimax.c
@@ -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;