Re: [PATCH v2] staging: greybus: add comments to mutex declarations
From: Sai Madhu
Date: Thu Jun 25 2026 - 06:51:49 EST
syr for duplicate patch,
please ignore .
On Thu, 25 Jun 2026 at 16:16, suryasaimadhu <suryasaimadhu369@xxxxxxxxx> wrote:
>
> 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@xxxxxxxxx>
> ---
> 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
>