From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:23:57 +0000 (-0700) Subject: staging: comedi: ni_mio_common: refactor 'num_p0_dio_channels' boardinfo X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~675 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0615c162f659fb96cbb97dfb2a0a315eecb7861f;p=pandora-kernel.git staging: comedi: ni_mio_common: refactor 'num_p0_dio_channels' boardinfo All of the board supported by this driver have at least 8 Digital I/O channels. A couple of the PCI boards in ni_pcimio have 32 channels. For aesthetics, change this member of the boardinfo into a bit-field flag, 'has_32dio_chan', and use that when initializing the DIO subdevice to set the number of channels to 32 or 8. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed