Skip to content

Commit

Permalink
staging: comedi: comedidev.h: add comments to spin-lock and mutex
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Oct 13, 2015
1 parent 3c3bea2 commit 214e384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 214e384

Please sign in to comment.