diff options
author | Ian Abbott | 2013-02-01 11:20:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-02-04 02:43:28 +0100 |
commit | f65cc5447eaea9f7be1ff54e27c9658a66c5910f (patch) | |
tree | a2b34fcc05f79b70bf6cd670ddbd2679e2db9a61 /drivers/staging/comedi/comedi_internal.h | |
parent | staging: comedi: move comedi_alloc_subdevice_minor declarations (diff) | |
download | kernel-qcow2-linux-f65cc5447eaea9f7be1ff54e27c9658a66c5910f.tar.gz kernel-qcow2-linux-f65cc5447eaea9f7be1ff54e27c9658a66c5910f.tar.xz kernel-qcow2-linux-f65cc5447eaea9f7be1ff54e27c9658a66c5910f.zip |
staging: comedi: change comedi_alloc_subdevice_minor parameters
`comedi_alloc_subdevice_minor()` doesn't really need a parameter
pointing to a `struct comedi_device` as it can get this information from
the parameter pointing to a `struct comedi_subdevice`. Just pass the
subdevice parameter.
Signed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_internal.h')
-rw-r--r-- | drivers/staging/comedi/comedi_internal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/comedi/comedi_internal.h b/drivers/staging/comedi/comedi_internal.h index f4f0ff293797..df4c67652933 100644 --- a/drivers/staging/comedi/comedi_internal.h +++ b/drivers/staging/comedi/comedi_internal.h @@ -11,8 +11,7 @@ int do_rangeinfo_ioctl(struct comedi_device *dev, int comedi_alloc_board_minor(struct device *hardware_device); void comedi_free_board_minor(unsigned minor); int comedi_find_board_minor(struct device *hardware_device); -int comedi_alloc_subdevice_minor(struct comedi_device *dev, - struct comedi_subdevice *s); +int comedi_alloc_subdevice_minor(struct comedi_subdevice *s); void comedi_free_subdevice_minor(struct comedi_subdevice *s); int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, |