From: H Hartley Sweeten Date: Wed, 12 Jun 2013 23:12:58 +0000 (-0700) Subject: staging: comedi: addi_apci_3xxx: refactor 'i_NbrTTLChannel' boardinfo X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ed9f25fbc94e8cfe6f5929e6cafa98944d51617;p=pandora-kernel.git staging: comedi: addi_apci_3xxx: refactor 'i_NbrTTLChannel' boardinfo The boards that have ttl input and output channels always have 24 channels. Remove the 'i_NbrTTLChannel' data from the boardinfo and add a bit field to indicate that the board 'has_ttl_io'. Use that to conditionally initialize the subdevice and open code the s->n_chan value of 24. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed