staging: unisys: add comment to spinlock in struct charqueue

Add a comment to the charqueue's spinlock to explain that it is a lock for the
structure.

Signed-off-by: Ken Depro <kenneth.depro@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Benjamin Romer 2014-12-05 17:08:41 -05:00 committed by Greg Kroah-Hartman
parent ce572c96f8
commit b0231f396e

View file

@ -28,7 +28,7 @@
struct charqueue {
int alloc_size;
int nslots;
spinlock_t lock;
spinlock_t lock; /* read/write lock for this structure */
int head, tail;
unsigned char buf[0];
};