staging: comedi: ni_tio.h: tidy up struct ni_gpct_device
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 23 Mar 2016 22:36:46 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Fix the checkpatch.pl issues:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
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/ni_tio.h

index 63cec3e..2f36dc1 100644 (file)
@@ -120,9 +120,9 @@ struct ni_gpct_device {
        unsigned int (*read)(struct ni_gpct *, enum ni_gpct_register);
        enum ni_gpct_variant variant;
        struct ni_gpct *counters;
-       unsigned num_counters;
-       unsigned regs[NITIO_NUM_REGS];
-       spinlock_t regs_lock;
+       unsigned int num_counters;
+       unsigned int regs[NITIO_NUM_REGS];
+       spinlock_t regs_lock;           /* protects 'regs' */
 };
 
 struct ni_gpct_device *