staging: comedi: das08: Add number of DI channels in board structure
commitffd76b327a19b49696635cd6891b9d279a73623e
authorIan Abbott <abbotti@mev.co.uk>
Fri, 31 Aug 2012 19:41:32 +0000 (31 20:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 19:00:41 +0000 (4 12:00 -0700)
treef5bf0c2b3185ae8dae21246cb267041fdf0efb0b
parent4865a47fc3f460c3be52e83a8c85af1381aec19f
staging: comedi: das08: Add number of DI channels in board structure

Add member `di_nchan` to `struct das08_board_struct` to set the number
of digital input channels explicitly.  Currently, the code determines
the number of channels to 3 or 8 depending on what function the `di`
member points to, which is not very elegant.

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