Commit 8b9ba6e5 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: change type of num_subdevices parameter to comedi_alloc_subdevices

The n_subdevices variable of struct comedi_device is an int type.
Change the type of the comedi_alloc_subdevices 'num_subdevices' from
an unsigned int to an int to match it.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbott@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c16ae76
...@@ -292,7 +292,7 @@ static inline struct comedi_subdevice *comedi_get_write_subdevice( ...@@ -292,7 +292,7 @@ static inline struct comedi_subdevice *comedi_get_write_subdevice(
return info->device->write_subdev; return info->device->write_subdev;
} }
int comedi_alloc_subdevices(struct comedi_device *, unsigned int); int comedi_alloc_subdevices(struct comedi_device *, int);
void comedi_device_detach(struct comedi_device *dev); void comedi_device_detach(struct comedi_device *dev);
int comedi_device_attach(struct comedi_device *dev, int comedi_device_attach(struct comedi_device *dev,
......
...@@ -56,10 +56,9 @@ static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s); ...@@ -56,10 +56,9 @@ static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s);
struct comedi_driver *comedi_drivers; struct comedi_driver *comedi_drivers;
int comedi_alloc_subdevices(struct comedi_device *dev, int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices)
unsigned int num_subdevices)
{ {
unsigned i; int i;
dev->n_subdevices = num_subdevices; dev->n_subdevices = num_subdevices;
dev->subdevices = dev->subdevices =
......
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