Commit f1cf2312 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman
Browse files

Staging: gdm72xx: Add appropriate comment for spinlock_t definition



Fix checkpatch issue: "CHECK: spinlock_t definition without comment".

Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 89677910
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@
static struct {
static struct {
	struct list_head head;
	struct list_head head;
	int cnt;
	int cnt;
	spinlock_t lock;
	spinlock_t lock; /* protect structure fields */
} qos_free_list;
} qos_free_list;


static void init_qos_entry_list(void)
static void init_qos_entry_list(void)
+1 −1
Original line number Original line Diff line number Diff line
@@ -62,7 +62,7 @@ struct qos_cb_s {
	int			qos_list_cnt;
	int			qos_list_cnt;
	int			qos_null_idx;
	int			qos_null_idx;
	struct gdm_wimax_csr_s	csr[QOS_MAX];
	struct gdm_wimax_csr_s	csr[QOS_MAX];
	spinlock_t		qos_lock;
	spinlock_t		qos_lock; /* Protect structure fields */
	int			qos_limit_size;
	int			qos_limit_size;
};
};


+2 −2
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ struct tx_cxt {
	struct list_head	hci_list;
	struct list_head	hci_list;
	ktime_t			sdu_stamp;
	ktime_t			sdu_stamp;
	u8			*sdu_buf;
	u8			*sdu_buf;
	spinlock_t		lock;
	spinlock_t		lock; /* protect structure fields */
	int			can_send;
	int			can_send;
	int			stop_sdu_tx;
	int			stop_sdu_tx;
};
};
@@ -50,7 +50,7 @@ struct rx_cxt {
	struct list_head	free_list;
	struct list_head	free_list;
	struct list_head	req_list;
	struct list_head	req_list;
	u8			*rx_buf;
	u8			*rx_buf;
	spinlock_t		lock;
	spinlock_t		lock; /* protect structure fields */
};
};


struct sdiowm_dev {
struct sdiowm_dev {
+2 −2
Original line number Original line Diff line number Diff line
@@ -41,7 +41,7 @@ struct tx_cxt {
#if defined(CONFIG_WIMAX_GDM72XX_USB_PM) || defined(CONFIG_WIMAX_GDM72XX_K_MODE)
#if defined(CONFIG_WIMAX_GDM72XX_USB_PM) || defined(CONFIG_WIMAX_GDM72XX_K_MODE)
	struct list_head	pending_list;
	struct list_head	pending_list;
#endif
#endif
	spinlock_t		lock;
	spinlock_t		lock; /* Protect structure fields */
};
};


struct usb_rx {
struct usb_rx {
@@ -56,7 +56,7 @@ struct usb_rx {
struct rx_cxt {
struct rx_cxt {
	struct list_head	free_list;
	struct list_head	free_list;
	struct list_head	used_list;
	struct list_head	used_list;
	spinlock_t		lock;
	spinlock_t		lock; /* Protect structure fields */
};
};


struct usbwm_dev {
struct usbwm_dev {
+1 −1
Original line number Original line Diff line number Diff line
@@ -45,7 +45,7 @@ static struct {
	int ref_cnt;
	int ref_cnt;
	struct sock *sock;
	struct sock *sock;
	struct list_head evtq;
	struct list_head evtq;
	spinlock_t evt_lock;
	spinlock_t evt_lock; /*protect structure fields */
	struct list_head freeq;
	struct list_head freeq;
	struct work_struct ws;
	struct work_struct ws;
} wm_event;
} wm_event;