From 9b61f085eb63bf1a304d7be5fc175cf478848bf2 Mon Sep 17 00:00:00 2001 From: Loic Pefferkorn Date: Wed, 3 Sep 2014 22:23:12 +0200 Subject: [PATCH] staging: goldfish: document spinlock usage Coding style: document spinlock usage Signed-off-by: Loic Pefferkorn Signed-off-by: Greg Kroah-Hartman --- drivers/staging/goldfish/goldfish_audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/goldfish/goldfish_audio.c b/drivers/staging/goldfish/goldfish_audio.c index 23a206d59790..b360d07564b1 100644 --- a/drivers/staging/goldfish/goldfish_audio.c +++ b/drivers/staging/goldfish/goldfish_audio.c @@ -36,6 +36,7 @@ MODULE_VERSION("1.0"); struct goldfish_audio { char __iomem *reg_base; int irq; + /* lock protects access to buffer_status and to device registers */ spinlock_t lock; wait_queue_head_t wait; -- 2.30.2