staging: comedi: mite: document the mite_struct spinlock_t
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 20 Apr 2016 17:36:41 +0000 (10:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:18:51 +0000 (22:18 -0700)
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>
drivers/staging/comedi/drivers/mite.h

index 9ef51e8cfa508c0ba97d5a641274cb37dec1699e..bd54dd08642844b24128410d80fa3ec111ae8e65 100644 (file)
@@ -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;
 };