Skip to contentSkip to conversation

staging: emxx_udc: Add comment for spinlock_t definition.

PATCH Superseded Varsha Rao 1 participant 1 message Feb 26, 2017 Staging

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Varsha Rao

author
#0 lore raw

PATCH 1/1 staging: emxx_udc: Add comment for spinlock_t definition.

Added comment for spinlock_t definition, to fix the following checkpatch issue:

CHECK: spinlock_t definition without comment

---
 drivers/staging/emxx_udc/emxx_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/emxx_udc/emxx_udc.h +1 -1
index 789bfb9..78c08e1 100644
@@ -567,7 +567,7 @@ struct nbu2ss_udc {
 	struct usb_gadget_driver *driver;
 	struct platform_device *pdev;
 	struct device *dev;
-	spinlock_t lock;
+	spinlock_t lock; /* Protects nbu2ss_udc structure fields */
 	struct completion		*pdone;
 
 	enum ep0_state			ep0state;
Signature · 1 line
2.9.3