Skip to contentSkip to conversation

staging: greybus: raw: add comment for list_lock mutex

PATCH New Mirza Ishan Beg 1 participant 1 message Jul 31

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: greybus: raw: add comment for list_lock mutex

Add a comment for list_lock mutex to document what it protects, fixing the following checkpatch warning:

CHECK: struct mutex definition without comment

---
 drivers/staging/greybus/raw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/raw.c +1 -1
index 459aed0f1240..17c88778c30c 100644
@@ -20,7 +20,7 @@ struct gb_raw {
 
 	struct list_head list;
 	int list_data;
-	struct mutex list_lock;
+	struct mutex list_lock; /* protect list and list_data */
 	struct rw_semaphore disconnect_lock;
 	bool disconnected;
 	struct cdev cdev;
Signature · 1 line
2.47.3