linux-hardened/drivers/staging/comedi
Ian Abbott b4eafd1135 staging: comedi: amplc_pc236: Simplify PCI board look-up
Since only a single PCI board is supported by the driver, there is no
need to call `pc236_find_pci_board()` to find the a board entry with
matching PCI device ID in `pc236_pci_boards[]`.  Just point to the entry
directly and remove the look-up function.  In fact, there is no reason
for `pc236_pci_boards[]` to be an array, so change it to a non-array
variable and rename it to `pc236_pci_board`.  Also, the `devid` member
of `struct pc236_board` is no longer needed as it was only used by the
look-up function, so remove it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-27 11:28:38 -07:00
..
drivers staging: comedi: amplc_pc236: Simplify PCI board look-up 2014-07-27 11:28:38 -07:00
kcomedilib Staging: comedi: kcomedilib: replace deprecated simple_strtoul() with kstrtouint() 2014-02-15 12:42:41 -08:00
comedi.h staging: comedi: comedi.h: checkpatch.pl --strict cleanup 2014-07-18 16:10:40 -07:00
comedi_buf.c staging: comedi: pass subdevice to comedi_buf_write_n_available() 2014-05-23 21:25:50 +09:00
comedi_compat32.c staging: comedi: comedi_compat32: checkpatch.pl --strict cleanup 2014-07-18 16:10:39 -07:00
comedi_compat32.h staging: comedi: comedi_compat32.h: checkpatch.pl --strict cleanup 2014-07-18 16:10:40 -07:00
comedi_fops.c staging: comedi: comedidev.h: remove 'new_size' param from subdevice (*buf_change) 2014-07-22 15:33:23 -07:00
comedi_internal.h staging: comedi: comedi_internal.h: checkpatch.pl --strict cleanup 2014-07-18 16:10:39 -07:00
comedi_pci.c
comedi_pcmcia.c
comedi_usb.c
comedidev.h staging: comedi: comedidev.h: remove 'new_size' param from subdevice (*buf_change) 2014-07-22 15:33:23 -07:00
comedilib.h
drivers.c staging: comedi: comedidev.h: remove 'new_size' param from subdevice (*buf_change) 2014-07-22 15:33:23 -07:00
Kconfig staging: comedi: ni_670x: remove COMEDI_MITE and HAS_DMA dependancy 2014-07-16 13:21:38 -07:00
Makefile staging: comedi: remove comedi_debug module parameter 2013-11-25 11:50:53 -08:00
proc.c Staging: comedi: proc: title block update 2014-03-19 04:41:04 +00:00
range.c Staging: comedi: range: remove unnecessary sanity check 2014-03-08 18:59:48 -08:00
TODO staging: comedi: TODO: remove item "reserve major number" 2014-05-28 14:18:11 -07:00