Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: add comments to mutex declarations
@ 2026-06-25  8:57 suryasaimadhu
  2026-06-25 10:26 ` Dan Carpenter
  0 siblings, 1 reply; 5+ messages in thread
From: suryasaimadhu @ 2026-06-25  8:57 UTC (permalink / raw)
  To: vaibhav.sr, mgreer
  Cc: johan, elder, gregkh, greybus-dev, linux-staging, linux-kernel,
	suryasaimadhu

Add comments to mutex members in gbaudio_codec_info struct
to describe what each mutex protects, as recommended by checkpatch.

Signed-off-by: suryasaimadhu <suryasaimadhu369@gmail.com>
---
 drivers/staging/greybus/audio_codec.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h
index f3f7a7ec6..326770b99 100644
--- a/drivers/staging/greybus/audio_codec.h
+++ b/drivers/staging/greybus/audio_codec.h
@@ -70,8 +70,8 @@ struct gbaudio_codec_info {
 	struct list_head module_list;
 	/* to maintain runtime stream params for each DAI */
 	struct list_head dai_list;
-	struct mutex lock;
-	struct mutex register_mutex;
+	struct mutex lock; /* protects module_list and dai_list */
+	struct mutex register_mutex; /* protects module registration */
 };
 
 struct gbaudio_widget {
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-25 11:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-25  8:57 [PATCH] staging: greybus: add comments to mutex declarations suryasaimadhu
2026-06-25 10:26 ` Dan Carpenter
2026-06-25 10:45   ` [PATCH v2] " suryasaimadhu
2026-06-25 10:48     ` Sai Madhu
2026-06-25 11:16   ` [PATCH] staging: greybus: add meaningful " suryasaimadhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox