Staging: comedi: Fix 'unsigned' warning style
authorAniket Sharma <badbuddha91@gmail.com>
Sun, 27 Mar 2016 17:52:19 +0000 (10:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Mar 2016 19:45:23 +0000 (12:45 -0700)
This patch fixes the checkpatch.pl warning:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+       unsigned runflags;

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+struct comedi_device *comedi_dev_get_from_minor(unsigned minor);

Signed-off-by: Aniket Sharma <badbuddha91@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h

index 115807215484747a9ee05785f89580316cadba29..dcb637665eb7283a4a85a65aa69896dc2c267504 100644 (file)
@@ -173,7 +173,7 @@ struct comedi_subdevice {
 
        void *lock;
        void *busy;
-       unsigned runflags;
+       unsigned int runflags;
        spinlock_t spin_lock;   /* generic spin-lock for COMEDI and drivers */
 
        unsigned int io_bits;
@@ -566,7 +566,7 @@ struct comedi_device {
 
 void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s);
 
-struct comedi_device *comedi_dev_get_from_minor(unsigned minor);
+struct comedi_device *comedi_dev_get_from_minor(unsigned int minor);
 int comedi_dev_put(struct comedi_device *dev);
 
 bool comedi_is_subdevice_running(struct comedi_subdevice *s);