staging: greybus: give comment
Subsystems (3)
PATCH 1/1 staging: greybus: give comment
Comment given to struct mutex lock; in file named as drivers/staging/greybus/audio_codec.h at line no. 75 This object is being used in audio_codec.c,audio_topology.c files.
--- drivers/staging/greybus/audio_codec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/audio_codec.h +1 -1
@@ -72,7 +72,7 @@ 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 lock;/* protect critical section for audio gb */ };struct gbaudio_widget {
Signature · 1 line
2.7.4
Quoted 14 lines · Payal Kshirsagar
Comment given to struct mutex lock; in file named as
drivers/staging/greybus/audio_codec.hat line no. 75 This object is being used in audio_codec.c,audio_topology.c files.Signed-off-by Payal Kshirsagar <[email protected]>--- drivers/staging/greybus/audio_codec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/greybus/audio_codec.h +0
-0
drivers/staging/greybus/audio_codec.h struct gbaudio_codec_info { · line 75
Quoted 5 lines
drivers/staging/greybus/audio_codec.h +1
-1@@ -72,7 +72,7 @@ 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 lock;/* protect critical section for audio gb */
I don't think the information provided by the comment is helpful. All locks protect critical sections. It's likely that this lock protects fields in the same structure, but which ones? Do all accesses to the structure need the lock or only certain ones.
julia
Quoted 13 lines
drivers/staging/greybus/audio_codec.h +0
-1};struct gbaudio_widget { --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1552892088-20069-1-git-send-email-payal.s.kshirsagar.98%40gmail.com.
For more options, visit https://groups.google.com/d/optout.