Commit ae6b0867 authored by Aniket Sharma's avatar Aniket Sharma Committed by Greg Kroah-Hartman

Staging: comedi: Fix 'unsigned' warning style

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: default avatarAniket Sharma <badbuddha91@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 143b3bf6
...@@ -173,7 +173,7 @@ struct comedi_subdevice { ...@@ -173,7 +173,7 @@ struct comedi_subdevice {
void *lock; void *lock;
void *busy; void *busy;
unsigned runflags; unsigned int runflags;
spinlock_t spin_lock; /* generic spin-lock for COMEDI and drivers */ spinlock_t spin_lock; /* generic spin-lock for COMEDI and drivers */
unsigned int io_bits; unsigned int io_bits;
...@@ -566,7 +566,7 @@ struct comedi_device { ...@@ -566,7 +566,7 @@ struct comedi_device {
void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s); 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); int comedi_dev_put(struct comedi_device *dev);
bool comedi_is_subdevice_running(struct comedi_subdevice *s); bool comedi_is_subdevice_running(struct comedi_subdevice *s);
......
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