From: H Hartley Sweeten Date: Tue, 20 Jan 2015 21:53:07 +0000 (-0700) Subject: staging: comedi: adv_pci1710: change boardinfo 'n_aochan' to 'has_ao' X-Git-Tag: fixes-v4.0-rc1~99^2~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87abf660912c75c08a8eeb501a4770b9e9126750;p=pandora-kernel.git staging: comedi: adv_pci1710: change boardinfo 'n_aochan' to 'has_ao' Some of the boards supported by this driver have analog outputs. The pci1720 board has 4 analog output channels and the others have 2. For aesthetics, change the 'n_aochan' member to a bit-field flag 'has_ao' and refactor the board attach accordingly. Remove the unnecessary initialization of the subdevice 'len_chanlist'. That member is only used by subdevices that support async commands. Also, remove the unnecessary 'number of channels' check in pci171x_reset(). The boards that used this function, and have analog outputs, always have 2 channels. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed