From: H Hartley Sweeten Date: Wed, 12 Jun 2013 23:12:37 +0000 (-0700) Subject: staging: comedi: addi_apci_3xxx: refactor 'i_NbrD[io]Channel' boardinfo X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aab8bfd1db3455c062c332e56790e6f046284c7;p=pandora-kernel.git staging: comedi: addi_apci_3xxx: refactor 'i_NbrD[io]Channel' boardinfo The boards that have digital input and output channels always have 4 inputs and 4 outputs. Remove the 'i_NbrD[io]Channel' data from the boardinfo and add two bit fields to indicate that the board 'has_dig_in' and 'has_dig_out'. Use those to conditionally initialize the subdevices and open code the s->n_chan value of 4 for both subdevices. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed