From: H Hartley Sweeten Date: Tue, 14 Oct 2014 17:44:45 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: simplify analog output boardinfo X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~833 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cd6b2b2a9ebca2d8ab9e74ac919a82e6eae45b3;p=pandora-kernel.git staging: comedi: addi_apci_3120: simplify analog output boardinfo There are two boards supported by this driver. One with eight 14-bit analog outputs and the other without analog outputs. Add a bit field flag, 'has_ao', to the boardinfo and remove the 'i_NbrAoChannel' and 'i_AoMaxdata' members. Use the new flag to determine if the analog output subdevice needs to be initialized and open code the n_chan and maxdata. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed