staging: goldfish: document spinlock usage
authorLoic Pefferkorn <loic@loicp.eu>
Wed, 3 Sep 2014 20:23:12 +0000 (22:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Sep 2014 04:54:57 +0000 (21:54 -0700)
Coding style: document spinlock usage

Signed-off-by: Loic Pefferkorn <loic@loicp.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/goldfish/goldfish_audio.c

index 23a206d5979028993e7814e51704c39bcd1c81bd..b360d07564b16f648e8cbbddbea0d9444f83ecd8 100644 (file)
@@ -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;