Commit 214e3842 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: comedidev.h: add comments to spin-lock and mutex

Fix the checkpatch.pl issues:

CHECK: spinlock_t definition without comment
CHECK: struct mutes definition withoug comment
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3c3bea26
...@@ -174,7 +174,7 @@ struct comedi_subdevice { ...@@ -174,7 +174,7 @@ struct comedi_subdevice {
void *lock; void *lock;
void *busy; void *busy;
unsigned runflags; unsigned runflags;
spinlock_t spin_lock; spinlock_t spin_lock; /* generic spin-lock for COMEDI and drivers */
unsigned int io_bits; unsigned int io_bits;
...@@ -537,8 +537,8 @@ struct comedi_device { ...@@ -537,8 +537,8 @@ struct comedi_device {
const void *board_ptr; const void *board_ptr;
bool attached:1; bool attached:1;
bool ioenabled:1; bool ioenabled:1;
spinlock_t spinlock; spinlock_t spinlock; /* generic spin-lock for low-level driver */
struct mutex mutex; struct mutex mutex; /* generic mutex for COMEDI core */
struct rw_semaphore attach_lock; struct rw_semaphore attach_lock;
struct kref refcount; struct kref refcount;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment