]> Pileus Git - ~andy/linux/commit
staging: comedi: me4000: remove struct me4000_dio_info
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 8 Sep 2012 00:39:50 +0000 (17:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Sep 2012 04:45:27 +0000 (21:45 -0700)
commit898f51910d38053eb12e0adc7c04119e6ad8ac6e
treef588ce0a963bdee79089af28d3fda4ec6a6bc3a4
parenteedf4299b5af712ee6f1db031308abe1a4dd7c82
staging: comedi: me4000: remove struct me4000_dio_info

The me4000_dio_info in the boardinfo struct is used to indicate
the number of 8 bit dio ports the the board has. Add a 'dio_nchan'
field to struct me4000_board and remove the struct me4000_dio_info.
The 'dio_nchan' value can then be used directly in the attach of
the board when setting the subdevice number of channels.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/me4000.c
drivers/staging/comedi/drivers/me4000.h