summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2016-04-20 17:36:41 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-29 05:18:51 (GMT)
commit43d667243c734fe7de39a586a095ea8fec9a873a (patch)
tree58c8efccee226a8619714807e41d9d1458153814 /drivers/staging/comedi
parent268bc9cd3a3cfb0cafaa484f463084ccb1abf9f7 (diff)
downloadlinux-43d667243c734fe7de39a586a095ea8fec9a873a.tar.xz
staging: comedi: mite: document the mite_struct spinlock_t
Add a comment to fix the checkpatch.pl issue: CHECK: spinlock_t definition without comment Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/mite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/mite.h b/drivers/staging/comedi/drivers/mite.h
index 9ef51e8..bd54dd0 100644
--- a/drivers/staging/comedi/drivers/mite.h
+++ b/drivers/staging/comedi/drivers/mite.h
@@ -57,6 +57,7 @@ struct mite_struct {
short channel_allocated[MAX_MITE_DMA_CHANNELS];
int num_channels;
unsigned int fifo_size;
+ /* protects mite_channel from being released by the driver */
spinlock_t lock;
};