staging: comedi: comedidev.h: add comments to spin-lock and mutex
authorIan Abbott <abbotti@mev.co.uk>
Mon, 12 Oct 2015 17:03:24 +0000 (18:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 17:30:39 +0000 (10:30 -0700)
Fix the checkpatch.pl issues:

CHECK: spinlock_t definition without comment
CHECK: struct mutes definition withoug comment

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h

index 6062493a7146c3e9c3376c8fdbece2e2d351a476..7a62e97b345c443b0480aea5278ae8dae6b6b993 100644 (file)
@@ -174,7 +174,7 @@ struct comedi_subdevice {
        void *lock;
        void *busy;
        unsigned runflags;
-       spinlock_t spin_lock;
+       spinlock_t spin_lock;   /* generic spin-lock for COMEDI and drivers */
 
        unsigned int io_bits;
 
@@ -537,8 +537,8 @@ struct comedi_device {
        const void *board_ptr;
        bool attached:1;
        bool ioenabled:1;
-       spinlock_t spinlock;
-       struct mutex mutex;
+       spinlock_t spinlock;    /* generic spin-lock for low-level driver */
+       struct mutex mutex;     /* generic mutex for COMEDI core */
        struct rw_semaphore attach_lock;
        struct kref refcount;