OSDN Git Service

staging: comedi: adl_pci6208: remove multiple board type support
authorIan Abbott <abbotti@mev.co.uk>
Fri, 27 Feb 2015 15:07:36 +0000 (15:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 02:57:40 +0000 (18:57 -0800)
commit706cb51b591e28ff5bfb1c592c1d2fa496828332
tree3a26b9d70812c79d1cddffdd223009de5d009bb0
parentcd6b76604d1df088409856fade41b26675d5952e
staging: comedi: adl_pci6208: remove multiple board type support

This driver module now only supports a single board type, so remove the
infrastructure for describing multiple board types.  The comedi
"auto_attach" handler, `pci6208_auto_attach()` doesn't need to set the
comedi device's `board_name` or `board_ptr` members.  The former is
automatically pointed to the comedi driver's `driver_name` by the core
comedi module, and the latter is not used anywhere else.  The AO
subdevice's `n_chans` member can be set to 16 without looking it up in
the single element of `pci6208_boards[]`.  There is no need to pass a
board index from the PCI device table to the "auto_attach" handler.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci6208.c