[PATCH] staging: most: video: document lock fields
From: Hussain Sitamouwala
Date: Thu Nov 05 2026 - 05:23:58 EST
Fix checkpatch.pl checks:
CHECK: spinlock_t definition without comment
CHECK: struct mutex definition without comment
Add a comment to each lock in struct most_video_dev describing what it
protects. No functional change.
Signed-off-by: Hussain Sitamouwala <husainsitamuwala21@xxxxxxxxx>
---
drivers/staging/most/video/video.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
index 3a0445ff62f4..d60be8a741ed 100644
--- a/drivers/staging/most/video/video.c
+++ b/drivers/staging/most/video/video.c
@@ -33,14 +33,14 @@ struct most_video_dev {
bool mute;
struct list_head pending_mbos;
- spinlock_t list_lock;
+ spinlock_t list_lock; /* protects pending_mbos */
struct v4l2_device v4l2_dev;
atomic_t access_ref;
struct video_device *vdev;
unsigned int ctrl_input;
- struct mutex lock;
+ struct mutex lock; /* serialization lock used by the V4L2 core */
wait_queue_head_t wait_data;
};
--
2.53.0