Add comment to spinlock declaration to fix warning issued by checkpatch.pl
"CHECK: spinlock_t definition without comment".

Signed-off-by: Jules Irenge <jbi.oct...@gmail.com>
---
 drivers/staging/rtl8712/drv_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8712/drv_types.h 
b/drivers/staging/rtl8712/drv_types.h
index 0c4325073c63..960d8709aada 100644
--- a/drivers/staging/rtl8712/drv_types.h
+++ b/drivers/staging/rtl8712/drv_types.h
@@ -160,7 +160,7 @@ struct _adapter {
        int pid; /*process id from UI*/
        struct work_struct wk_filter_rx_ff0;
        u8 blnEnableRxFF0Filter;
-       spinlock_t lock_rx_ff0_filter;
+       spinlock_t lock_rx_ff0_filter; /*spinlock to protect interrupt request*/
        const struct firmware *fw;
        struct usb_interface *pusb_intf;
        struct mutex mutex_start;
-- 
2.21.0

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to