Skip to content

Commit

Permalink
staging: comedi: change type of num_subdevices parameter to comedi_al…
Browse files Browse the repository at this point in the history
…loc_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: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbott@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent 0c16ae7 commit 8b9ba6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static inline struct comedi_subdevice *comedi_get_write_subdevice(
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);
int comedi_device_attach(struct comedi_device *dev,
Expand Down
5 changes: 2 additions & 3 deletions drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s);

struct comedi_driver *comedi_drivers;

int comedi_alloc_subdevices(struct comedi_device *dev,
unsigned int num_subdevices)
int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices)
{
unsigned i;
int i;

dev->n_subdevices = num_subdevices;
dev->subdevices =
Expand Down

0 comments on commit 8b9ba6e

Please sign in to comment.