aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/goldfish/goldfish_audio.c
diff options
context:
space:
mode:
authorLoic Pefferkorn <loic@loicp.eu>2014-09-03 22:23:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-06 21:54:57 -0700
commit9b61f085eb63bf1a304d7be5fc175cf478848bf2 (patch)
treea2fa89ca081402d275175c49444dad9fb131759b /drivers/staging/goldfish/goldfish_audio.c
parent1977533a3f425cb9b7633d59e30459e048ce681f (diff)
staging: goldfish: document spinlock usage
Coding style: document spinlock usage Signed-off-by: Loic Pefferkorn <loic@loicp.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/goldfish/goldfish_audio.c')
-rw-r--r--drivers/staging/goldfish/goldfish_audio.c1
1 files changed, 1 insertions, 0 deletions
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;

Privacy Policy