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